Skip to content

Conversation

@arturobernalg
Copy link
Member

This change adds an optional hard cap on the total number of queued / in-flight requests per HTTP/2 connection. When the per-connection limit is reached, new submissions fail fast with RejectedExecutionException and the slot is released when the exchange handler releases its resources. The cap is configured via H2MultiplexingRequesterBootstrap and passed into H2MultiplexingRequester at construction time to keep the requester configuration immutable and avoid API incompatibilities.

@arturobernalg arturobernalg requested a review from ok2c December 27, 2025 18:14
@ok2c
Copy link
Member

ok2c commented Dec 28, 2025

@arturobernalg I do not like this approach. There is already a command queue built into the IOSession. We should leverage that queue instead of creating another layer of complexity. What we need is to extend IOSession interface to expose information about already pending commands and optionally reject commands if the queue is over a particular limit.

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