You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
HTTP2: Inbound flow control - default settings vs. adaptive algorithm #1587
[EDIT] We need to decide if we want to expose just default setting, or if we want to do something fancier (adaptive algorithm) and how it would interact with such setting (or we can skip the setting).
HTTP2 allows us to define our window size using the SETTINGS_INITIAL_WINDOW_SIZE setting. The default is 64K.
Currently we simply always use the default. Should we expose a setting to control this?
Note that this setting would basically control the receive buffer size for a response body.
Flow control is managed both per-stream and per-connection, but the interesting case here is per-stream.
Merged with issue dotnet/corefx#35388:
[EDIT] Pipelines has some logic already to reach an optimal receive window -- should we leverage that?
Currently, our stream-level response window is 64K (the default). This is probably too small for many scenarios, and will end up stalling the server as it sends response data.
We should increase this, but it's not clear what the right amount is. Further perf investigation is needed here.
As part of this, we should probably switch our response buffering strategy from using a single array buffer to using linked buffers that are allocated from the pool.
changed the title [-]HTTP2: Should we expose settings on SocketsHttpHandler for inbound flow control?[/-][+]HTTP2: Inbound flow control - default settings vs. adaptive algorithm[/+]on Oct 8, 2019
Activity
karelz commentedon Feb 27, 2019
Related to dotnet/corefx#35388
It is an escape route if we don't get defaults right + involves new API. Not critical for 3.0 at this moment.
Tratcher commentedon Sep 23, 2019
Yes these should be configurable in case people run into throughput or memory issues.
scalablecory commentedon Sep 24, 2019
I think we can let the user configure a maximum receive window size, and then implement some logic to auto-discover it.
[-]HTTP2: Should we expose settings on SocketsHttpHandler for inbound flow control?[/-][+]HTTP2: Inbound flow control - default settings vs. adaptive algorithm[/+]karelz commentedon Oct 8, 2019
Triage: We should explore what winsock does.
scalablecory commentedon Nov 4, 2019
Related: dotnet/aspnetcore#4734
antonfirsov commentedon Aug 31, 2021
Fixed in #54755.