hyperium / hyper

An HTTP library for Rust
https://hyper.rs
MIT License
14.42k stars 1.59k forks source link

About h2 server config `DEFAULT_SETTINGS_MAX_HEADER_LIST_SIZE` #3686

Closed wisdom-yzh closed 3 months ago

wisdom-yzh commented 3 months ago

Version hyper 1.3.1 h2 0.4.5

Description Why DEFAULT_SETTINGS_MAX_HEADER_LIST_SIZE for h2 protocol changed from 16MB to 16KB in hyper 1.3.1 ?

In h2 lib and earlier hyper, the default value is 16MB, while in hyper-1.3.1 it changed to 16KB. As a result, some http requests triggered from golang x/net/http2 package with long url or big headers encounter failure http2: request header list larger than peer's advertised limit.