You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(mux): pooled backend connection reused after its backend was removed #1735
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
fix(mux): never reuse a pooled connection to a removed backend
fix(mux): never reuse a pooled connection to a removed backend
fix(mux): never reuse a pooled connection to a removed backend (#1743)
fix(mux): close a pooled connection to a removed backend once it is idle
fix(mux): close a pooled connection to a removed backend once it is idle