Skip to content

tonic: add hyper's http2_max_pending_accept_reset_streams to server #1401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

timvisee
Copy link
Contributor

This adds the http2_max_pending_accept_reset_streams property to the server, to configure the allowed number of reset streams pending accept.

Motivation

In Qdrant we're trying to use hundreds of streams over HTTP2, all having a good chance to be dropped/reset. This makes it very easy to reach the default limit of 20 reset streams, causing internal connection errors, causing cluster consensus problems in production.

We'd like to greatly increase this limit for our internal cluster communication to prevent triggering the GOAWAY/ENHANCE_YOUR_CALM error. The risk of a denial of service is accepted because this is just for internal communication. The additional CPU/memory this consumes is not an issue in our case.

Solution

To increase this limit, we need access to the property this PR implements.

For reference, this limit was implemented a month ago in hyperium/h2#668.

Additionally we'd like to access reset_stream_duration to further tune this. But that will be in a different PR once this is merged.

@LucioFranco LucioFranco added this pull request to the merge queue Aug 2, 2023
Merged via the queue into hyperium:master with commit 6077896 Aug 2, 2023
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