Skip to content
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

feat(transport): Expose hyper's H2 adaptive window on server #1071

Merged
merged 1 commit into from Sep 6, 2022

Conversation

adamchalmers
Copy link
Contributor

@adamchalmers adamchalmers commented Sep 6, 2022

Motivation

HTTP/2 window sizes determine how many bytes the client or server is willing to allow in-flight at one time. Clients and servers maintain their own independent windows with their own independently-chosen sizes. Hyper's h2 client and servers can use "adaptive flow control" to dynamically adjust this size during the life of a connection. You can read about their adaptive scaling in the relevant Hyper issue or PR.

Tonic lets users enable this for clients but not for servers.

Solution

Add a new method to transport::Server which lets users set the underlying HTTP/2 server's adaptive window mode.

Copy link
Member

@LucioFranco LucioFranco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@LucioFranco LucioFranco merged commit 919d28b into hyperium:master Sep 6, 2022
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.

None yet

2 participants