Open
Description
This test program downloads a 281MB file from AWS S3 using hyper-rustls
with HTTP2 enabled:
https://github.com/rocallahan/http2-window-size-bug/blob/master/src/main.rs
On a AWS c5d.9xl instance, it takes a few minutes. If you disable HTTP2 in the example, or use curl/wget, it takes a few seconds.
Calling http2_initial_stream_window_size
to set SETTINGS_INITIAL_WINDOW_SIZE
to 2^31 - 1 fixes the problem completely.
My understanding is that client stacks should automatically expand the HTTP2 stream window size while no backpressure is needed, like TCP does, but it appears that isn't happening.
If the intent is that hyper
should not manage stream window sizes, okay, but in that case reqwest
should.