Menu

#160 TRDP MD Test 4 (TCP request/reply) fails with reply timeout

1.3.2.0
closed
None
2017-06-28
2017-06-08
Bernd Löhr
No

trdp-md-test test case 4 fails with reply timeout. The TCP connection is closed before the complete reply data (64k) has been received.

Discussion

  • Bernd Löhr

    Bernd Löhr - 2017-06-26
    • status: open --> accepted
     
  • Bernd Löhr

    Bernd Löhr - 2017-06-26

    md-test fails between two Linux devices - it works if the test runs between two BSD devices. If either caller or replier is Linux, it fails.
    Additionally, the following was observered:
    The TCP socket read returns no data although the select call claims the socket descriptor to be ready for reading.
    If the read is delayed by 5ms after select returns with readable descriptor, the read is successful.

     
  • Bernd Löhr

    Bernd Löhr - 2017-06-27
    • assigned_to: mike
     
  • Bernd Löhr

    Bernd Löhr - 2017-06-27

    Further findings:
    Looks like 'uncompleted TCP' feature is broken! If TCP read returns with less data than the header datalength anounces, the read should be repeated the next (tlc_process - ) time - until all data has been read. This seems to fail (and would explain the dependency on slow devices)

     
  • Bernd Löhr

    Bernd Löhr - 2017-06-28
    • status: accepted --> closed
    • assigned_to: mike --> Bernd Löhr
     
  • Bernd Löhr

    Bernd Löhr - 2017-06-28

    Fixed error return value handling in mdCheckListenSockets, error handling prevented partial telegram transfer.

     

Log in to post a comment.

MongoDB Logo MongoDB