Skip to content

Tokio does not appear to drop chained future on disconnect #269

@cetra3

Description

@cetra3

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 hyper 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 the proxy -> 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions