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

Early disconnect #2

Closed
mattjohnsonpint opened this issue Aug 30, 2013 · 1 comment
Closed

Early disconnect #2

mattjohnsonpint opened this issue Aug 30, 2013 · 1 comment
Labels

Comments

@mattjohnsonpint
Copy link
Contributor

With any latency on the connection, the receiver is disconnecting too early.

@mattjohnsonpint
Copy link
Contributor Author

The previous approach was an attempt to block the line until 200ms had passed. This way is more efficient, using the .DataAvailable flag from the network stream, and stays fully asynchronous.

Testing showed that disconnects are no longer occurring, and it still handles the issue of backed-up data on the line that the original synchronous code was attempting to handle.

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

No branches or pull requests

1 participant