-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Hyper does not appear to drop chained future on disconnect #1360
Comments
It does look very similar. I'll give that PR a shot to see if it's resolved |
I've tested the latest master (commit In other words, the opposite is now happening: It's leaking connections on a successful attempt. My code to test this is as follows: Cargo.toml:
src/main.rs:
Then run the following in a terminal:
You will see 100 open sockets that don't go away:
|
I've pushed a fix for when the |
This is in v0.11.7 (I believe requires |
Thanks! |
This is a weird one, and I'm not sure where the problem lies exactly but I am seeing that connections are hanging around when doing a hyper proxy-like configuration, so it might be a bug in tokio-core too.
What I'm seeing though is when I'm trying to stream a proxy request (like in this example), the TCP connection drops off from the
client -> proxy
, but from theproxy -> server
, if the client prematurely disconnects, then this second connection stays open.This was seen by proxying
Partial Content
requests, especially with a video or other media, and skipping around.What I'd like to know is when a tcp connection is cut off, is this meant to propagate down the future chain? I would've thought it would cause the whole thing to disconnect, but I'm also not sure when hyper actually disconnects.
The text was updated successfully, but these errors were encountered: