Skip to content

Conversation

awgn
Copy link

@awgn awgn commented Oct 2, 2025

This merge request introduces an Event Handler to the legacy client, an extension currently used in the Orion proxy.

The event handler, when enabled, allows the application to receive notifications about specific events occurring in the connection pool — such as the creation of a new connection, the closing of an idle connection, and more.

Specifically, this MR:

  • Adds the pool event notification mechanism to the legacy client.
  • Adds the http2_max_concurrent_streams setter.

awgn added 5 commits October 2, 2025 09:52
- Introduce PoolEvent and EventHandler for pool notifications
- Notify on connection creation, closure, error, and timeout
- Update Pool and PoolInner to support event handler
- Notify on idle connection cleanup and connection drop events
- Add scopeguard dependency for connection error handling
@seanmonstar
Copy link
Member

Thanks for the PR!

I don't plan to make many changes to the legacy client, all work is going towards a newer design that will allow you to better customize the different layers of the pool. See hyperium/hyper#3849 for more.

@seanmonstar seanmonstar closed this Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants