Menu

#30 “Error is Success”

2.0
closed
None
2019-05-10
2019-04-08
No

tmp_server prints now and then “read() error. Error is 0 Success”.
• If this is success, then the word “error” shall not be emited (twice)
• If this is an error, then the word “success” shall not be emitted.

I use ibmtpm1332.tar.gz.

Discussion

  • Ken Goldman

    Ken Goldman - 2019-04-08

    Thank you for the report. I believe that I found the error and fixed it. A few questions:

    1. This was Linux, not Windows, right?
    2. I could not reproduce the error. Do you have any sequence of steps that can cause it? It would help ensure that the fix is correct.

    The fix is that, in ReadBytes(), the first test should be (res < 0), not (res <= 0). Both cases are errors, but res == 0 does not set errno.

     
  • Dilian Wesselinov Palauzov

    I use Linux.

    Attach is the captured traffic with the tpm_server, created with “tcpdump -i lo -v -s 0 "(port 2321) or (port 2322)" -w ttt”. To unfold, use “tcpdump -Xr ttt”.

     
  • WinPORTS

    WinPORTS - 2019-04-14

    Ciao. We have reported exactly the same issue on Windows. Still not fixed! Cheers.

     
    • Ken Goldman

      Ken Goldman - 2019-04-15

      That was also reported and is fixed for the next release. The Windows socket API does not use strerror and errno.

       
  • Ken Goldman

    Ken Goldman - 2019-04-15
    • status: open --> accepted
    • assigned_to: Ken Goldman
     
  • Ken Goldman

    Ken Goldman - 2019-05-10
    • status: accepted --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB