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
http: wire ConnectionLifetimeCallbacks into pool connection events (#43702)
## Commit Message
http: wire ConnectionLifetimeCallbacks into pool connection events
## Description
Wires up the `ConnectionLifetimeCallbacks` interface that is there but
is not connected to actual connection events from what I see at least.
The cluster manager now passes the LB's callbacks into each HTTP pool at
creation time, and `MultiplexedActiveClientBase` fires them on
Connected, Close, and GOAWAY events.
Primary motivation: allows the reverse tunnel cluster's LB to detect
GOAWAY and report it to the tunnel reporter ([raw
example](aakugan@31094c9)).
Also applicable to DFP clusters for connection coalescing awareness from
what I [see](#17874).
## Risk Level
Should be low. Additive-only changes to production code. Callbacks are
no-ops unless explicitly set by the LB. No behavior change for existing
clusters.
## Testing
- HTTP/2 conn pool unit tests (7 tests): no-op without callbacks,
Connected/RemoteClose/LocalClose with arg verification, GOAWAY with
active streams, idle GOAWAY, callback replacement.
- HTTP/3 conn pool unit test: Connected + idle GOAWAY through
`MultiplexedActiveClientBase`.
- Cluster manager unit tests: verifies `setLifetimeCallbacks` is called
on pool creation.
## Docs Changes
N/A
## Release Notes
N/A
---------
Signed-off-by: aakugan <aakashganapathy2@gmail.com>
0 commit comments