-
Notifications
You must be signed in to change notification settings - Fork 940
fix pathological MAX_DATA/STREAM_MAX_DATA update behavior #2356
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -480,9 +480,6 @@ const MAX_UNDECRYPTABLE_PACKETS: usize = 10; | |
|
|
||
| const RESERVED_VERSION_MASK: u32 = 0xfafafafa; | ||
|
|
||
| // The default size of the receiver connection flow control window. | ||
| const DEFAULT_CONNECTION_WINDOW: u64 = 48 * 1024; | ||
|
|
||
| // The maximum size of the receiver connection flow control window. | ||
| const MAX_CONNECTION_WINDOW: u64 = 24 * 1024 * 1024; | ||
|
|
||
|
|
@@ -2008,7 +2005,7 @@ impl<F: BufFactory> Connection<F> { | |
| rx_data: 0, | ||
| flow_control: flowcontrol::FlowControl::new( | ||
| max_rx_data, | ||
| cmp::min(max_rx_data / 2 * 3, DEFAULT_CONNECTION_WINDOW), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this relates to the auto tuning behavior and tries to minimize internal buffering in some way. I think the authority on this topic is likely Alessandro, but unfortunately he's OOO this week. We likely want to add some further testing for this behavior and possibly even make it configurable althought I agree the behavior is strange and unnecessarily slows down new streams.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm wondering if it was supposed to be cmp::max.... |
||
| max_rx_data, | ||
| config.max_connection_window, | ||
| ), | ||
| should_send_max_data: false, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.