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

Flow control: only give back flow control tokens after surfacing reads to the application #131

Merged
merged 6 commits into from
Jul 29, 2020

Conversation

anmonteiro
Copy link
Owner

@anmonteiro anmonteiro commented Jul 29, 2020

This diff implements proper flow control in h2, whereas previously the endpoint would just give back flow control tokens to the peer upon the receipt of DATA frames.

- inflow is set by the endpoint, statically, via configuration, and
  affects the peer's ability to send flow-controlled frames.. It doesn't
  change.
- flow is set by the peer throughout the frame exchange, and affects the
  endpoint's ability to send flow-controlled frames.
@anmonteiro anmonteiro merged commit 8ec218e into master Jul 29, 2020
@anmonteiro anmonteiro deleted the anmonteiro/proper-flow-control branch July 29, 2020 13:20
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.

1 participant