Skip to content

Conversation

wz2b
Copy link

@wz2b wz2b commented Aug 26, 2020

using a TCP connection. Without this, a slow response can cause
transaction ID mismatches for the life of this TCP connection (it
never recovers). This occurs when a remote device does answer, but
it answers too slowly. The request has already timed out, and when
the next request is launched the previous response is read (rather
than the new one) causing this error.

using a TCP connection.  Without this, a slow response can cause
transaction ID mismatches for the life of this TCP connection (it
never recovers).  This occurs when a remote device does answer, but
it answers too slowly.  The request has already timed out, and when
the next request is launched the previous response is read (rather
than the new one) causing this error.
@HarryChen001
Copy link

hi,i think you should change the SetReadDeadline(time.now) to SetReadDeadline(time.now().add(time.millisecod*1))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants