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

Respect changes to INITIAL_WINDOW_SIZE in outbound buffer. #64

Merged

Conversation

Lukasa
Copy link
Contributor

@Lukasa Lukasa commented Mar 15, 2019

Motivation:

When the remote peer changes SETTINGS_INITIAL_WINDOW_SIZE, this change
affects the flow control window sizes of all existing streams (as though
they were created with this new initial window size). We should respect
those flow control changes.

Modifications:

  • Propagated changes in SETTINGS_INITIAL_WINDOW_SIZE.
  • Made NIOHTTP2ConnectionStateChange internal.
  • Added support for changing initial window size.

Result:

SETTINGS frames that change initial window size now work properly.

@Lukasa Lukasa requested a review from weissi March 15, 2019 12:31
Motivation:

When the remote peer changes SETTINGS_INITIAL_WINDOW_SIZE, this change
affects the flow control window sizes of all existing streams (as though
they were created with this new initial window size). We should respect
those flow control changes.

Modifications:

- Propagated changes in SETTINGS_INITIAL_WINDOW_SIZE.
- Made NIOHTTP2ConnectionStateChange internal.
- Added support for changing initial window size.

Result:

SETTINGS frames that change initial window size now work properly.
@Lukasa Lukasa force-pushed the cb-inbound-flow-control-change-via-settings branch from 3bb208c to 1679b50 Compare March 15, 2019 13:47
Copy link
Member

@weissi weissi left a comment

Choose a reason for hiding this comment

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

👍 lgtm

@weissi weissi merged commit 9e07639 into apple:master Mar 15, 2019
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