-
Notifications
You must be signed in to change notification settings - Fork 732
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
Deregistering TcpListener on Windows doesn't work #1073
Comments
Merged
dtacalau
added a commit
to dtacalau/mio
that referenced
this issue
Nov 7, 2019
…en deregistering a socket make sure it is marked for deletion so it won't be used in poll updates. Signed-off-by: Daniel Tacalau <dst4096@gmail.com>
@Thomasdezeeuw please assign this issue to me, I've started working on it. |
dtacalau
added a commit
to dtacalau/mio
that referenced
this issue
Nov 8, 2019
…on windows. When deregistering a socket make sure it is marked for deletion so it won't be used in poll updates. Signed-off-by: Daniel Tacalau <dst4096@gmail.com>
dtacalau
added a commit
to dtacalau/mio
that referenced
this issue
Nov 8, 2019
… windows. When deregistering a socket make sure it is marked for deletion so it won't be used in poll updates. Also added a new more complicated test for TcpStream deregistering and fixed the existing test which was mistankenly registering only READABLE instead of WRITABLE. Signed-off-by: Daniel Tacalau <dst4096@gmail.com>
Deregistering did not worked for TcpListener, TcpStream, UdpSocket but the error was not caught everywhere. To fix this the socket state should be marked for deletion upon deregistering so it cannot be used in any subsequent poll updates. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See #1070, relevant CI logs is available here: https://dev.azure.com/tokio-rs/Tokio/_build/results?buildId=2274&view=logs&jobId=429a383f-e486-57ac-3982-9ac65641a32a&taskId=1f926ffb-0ec7-5f9b-ab05-76fbb04597a8&lineStart=150&lineEnd=151&colStart=1&colEnd=1. Relevant test is available here: https://github.com/Thomasdezeeuw/mio/blob/add262520f777d5564c26b7f2fc8596a07c4e83f/tests/tcp_listener.rs#L156-L185.
/cc @PerfectLaugh
Copy of the log and code, for when the links above don't work anymore.
The text was updated successfully, but these errors were encountered: