hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Provides more detailed h2 configuration

Open silence-coding opened this issue 4 years ago • 3 comments

H2 provides a large number of configurable parameters, but hyper exposes only some of them. It is recommended that hyper provide these parameters. Currently, some servers return REFUSED_STREAM because of max_concurrent_streams.

https://github.com/hyperium/hyper/blob/5243570137ae49628cb387fff5611eea0add33bf/src/proto/h2/client.rs#L72

silence-coding avatar Jul 20 '21 12:07 silence-coding

It's fine to add some more options to hyper's builders.

(I don't think any of them would help you with servers refusing streams...)

seanmonstar avatar Jul 20 '21 15:07 seanmonstar

Thanks.

silence-coding avatar Jul 28 '21 11:07 silence-coding

The missing configurable parameters right now seems to be: max_header_list_size, max_concurrent_streams, initial_max_send_streams, reset_stream_duration and max_send_buffer_size.

I can contribute to this if it's ok.

kriogenia avatar Oct 03 '22 22:10 kriogenia