-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
tokio_tcp::TcpStream::poll_read_ready fails to detect HUP #1182
Comments
With
With
|
@vi yes, that was a bug. Reporting |
Will it be possible to:
after the revisit? Ideally also portably. |
Yes, I would like to. It will most likely require platform specific code in Tokio to do so. |
I added a note here: #1209. |
vi
added a commit
to vi/websocat
that referenced
this issue
Sep 25, 2019
Workaround of tokio-rs/tokio#1182 included.
This was referenced Feb 9, 2020
A Stream object in a pending state won't be dropped after the client disconnect
actix/actix-web#1313
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
Platform
x86_64-unknown-linux-gnu
Description
TcpStream::poll_read_ready
claims to always include HUP on supported platform. I assume Linux (and Unix in genereal) is a supported platform. Yet arrival of FIN on the socket does not cause it to returnOk(Async::Ready)
.Sample code
When I run it against
nc -nvlp 1234
, I get:The text was updated successfully, but these errors were encountered: