Skip to content

fix(mux): close a pooled connection to a removed backend once it is idle #1760

Closed

Description

@FlorentinDUBOIS

Follow-up to #1735.

Since #1743, a pooled backend connection whose backend left the configuration is no longer reused, but it stays open: an H1 keep-alive or idle H2 connection to a removed backend is kept until the frontend session ends. The removed backend keeps an open connection and its active_connections never reaches zero, so it never moves from Closing to Closed.

Expected: once such a connection carries no stream, the proxy closes it.

Also to document: a reload that changes a backend's weight, sticky_id or backup is applied as RemoveBackend then AddBackend (ConfigState::diff), so sessions open a new connection to that backend instead of reusing the pooled one.

Activity

  1. added 2 commits that reference this issue on Oct 1, 2026
    d14e332
    045f932
  2. added a commit that references this issue on Oct 2, 2026
    36eca96
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