Skip to content

Add http2_max_local_error_reset_streams method to legacy client#277

Merged
seanmonstar merged 1 commit intohyperium:masterfrom
op:op/legacy-client-max-local-error-reset-streams
May 1, 2026
Merged

Add http2_max_local_error_reset_streams method to legacy client#277
seanmonstar merged 1 commit intohyperium:masterfrom
op:op/legacy-client-max-local-error-reset-streams

Conversation

@op
Copy link
Copy Markdown
Contributor

@op op commented Mar 24, 2026

Expose the h2 max_local_error_reset_streams setting on the legacy client builder, allowing users to configure the maximum number of locally-reset streams before a GOAWAY frame is sent.

@op
Copy link
Copy Markdown
Contributor Author

op commented Mar 24, 2026

To share some context: we encountered this issue when cancelling internal client requests. Maybe there's something internally in hyper that can be fixed but see here for details for both h2 and tonic:

@op op force-pushed the op/legacy-client-max-local-error-reset-streams branch from b63351e to f4a85a4 Compare March 24, 2026 18:35
@op
Copy link
Copy Markdown
Contributor Author

op commented Mar 24, 2026

Didn't realise that the max_local_error_reset_streams method hasn't been released yet.

@seanmonstar
Copy link
Copy Markdown
Member

Oh right, this will need a release of hyper. I'll prioritize that.

@gautamg795
Copy link
Copy Markdown

hi! I believe the field went out in hyper 1.9.0 -- is this now mergeable?

@seanmonstar
Copy link
Copy Markdown
Member

Yep, this just needs to bump the minimum version of the dependency

…acy client

Expose the h2 `max_local_error_reset_streams` setting on the legacy
client builder, allowing users to configure the maximum number of
local resets due to protocol errors.

Requires hyper 1.9.0 for hyperium/hyper#4021
@op op force-pushed the op/legacy-client-max-local-error-reset-streams branch from f4a85a4 to d1bfb5b Compare April 30, 2026 18:24
@op
Copy link
Copy Markdown
Contributor Author

op commented Apr 30, 2026

Great! Bumped dependency now. Let me know what you think 👍

@seanmonstar seanmonstar merged commit 0cd560f into hyperium:master May 1, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants