Skip to content

fix(mux): an HTTP/2 client that resets mid-download keeps its session until a timeout #1792

Closed

Description

@FlorentinDUBOIS

An HTTP/2 frontend whose client resets its connection while a response is being sent keeps its session until a timeout instead of closing it.

delay_close_for_frontend_flush (lib/src/protocol/mux/mod.rs) arms WRITABLE for the pending output, and no H2 write path (lib/src/protocol/mux/h2.rs) treats a SocketResult::Error or SocketResult::Closed write as fatal, so the session waits to flush output that can never leave.

Expected: a failed write to an H2 client closes the session at once, as an H1 frontend does since #1789.

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