Skip to content

fix(h2): close without lingering after the final GOAWAY #1764

Closed

Description

@FlorentinDUBOIS

After an H2 frontend sends its final GOAWAY (graceful drain, soft stop, or a reply to the client's own GOAWAY), sozu stops reading, and once the GOAWAY is flushed the session closes at once (shutdown(SHUT_WR), then close(2)).

The client may still be sending frames it wrote before it read the GOAWAY (RFC 9113 §6.8). When the receive queue is not empty at the close, or more data arrives after it, the kernel sends a reset. That reset discards response bytes still queued in sozu's socket, so the client can lose the end of a response it was otherwise served in full.

This is the same mechanism #1738 addresses for H1, and the same staged close applies: half-close the write side, then read and discard for a bounded time and amount before closing.

Activity

  1. added 2 commits that reference this issue on Oct 1, 2026
    f61e80a
    ca1ffc2
  2. added a commit that references this issue on Oct 2, 2026
    e222276
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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