Skip to content

fix(mux): pooled backend connection reused after its backend was removed #1735

Closed

Description

@FlorentinDUBOIS

The mux pool-reuse scan in Router::decide_after_gate (lib/src/protocol/mux/router.rs) matches a pooled backend connection (H1 keep-alive, H2 connected or connecting) by cluster id only.

A cluster id survives RemoveCluster followed by AddCluster of the same id, and a cluster survives RemoveBackend. A session that holds a connection to a backend that is no longer configured can therefore send a new request to it instead of to the cluster's current backends.

Expected: a pooled connection is reused only while its backend is still part of the configuration. In-flight requests on such a connection may drain; new requests must go to a configured backend.

Activity

  1. added 3 commits that reference this issue on Oct 1, 2026
    e20f543
    c7eb12e
    56439e9
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