hyperium / hyper

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

chore(server/conn): backport `max_pending_accept_reset_streams()` #3796

Closed cratelyn closed 1 day ago

cratelyn commented 3 days ago

NB: this commit is based on the 0.14.x release series.

the server::conn::http2 submodule provides types that are conditionally compiled when the backports feature is active, to facilitate upgrading to the 1.x release.

i've been working on upgrading the linkerd2-proxy project to use hyper 1.0, but encountered a pertinent gap in Builder<E>'s interface when setting the backports and deprecated features.

this adds a max_pending_accept_reset_streams(..) method (added in #3201) to this builder, so that 0.14.x users relying on this functionality can prepare to upgrade to hyper 1.x safely.

this is effectively a backport of #3507, which restored this interface to the 1.0 release.

for more information, see:

seanmonstar commented 3 days ago

Submitted #3797 to fix that MSRV job.

cratelyn commented 3 days ago

Submitted #3797 to fix that MSRV job.

thank you! i'll rebase now