Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a receive flush timeout just prior to launching the next poll when #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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