Skip to content

fix: rare race during shutdown - #956

Merged
seanmonstar merged 1 commit into
masterfrom
sean/kzoqpqwtlpon
Sep 9, 2026
Merged

fix: rare race during shutdown#956
seanmonstar merged 1 commit into
masterfrom
sean/kzoqpqwtlpon

Conversation

@seanmonstar

Copy link
Copy Markdown
Member

This race seems to be the root cause for hyperium/hyper#3896.

It was discovered by instrumenting the Connection::poll call with yields, and noticed at what line it could hang. Once re-ordering this check, the hang is fixed.

Creating a unit test is quite hard, since it depends on the synchronization of a few lock calls, which we cannot force in the h2-tests crate without some sort of hook.

@seanmonstar
seanmonstar merged commit e43124b into master Sep 9, 2026
8 checks passed
@seanmonstar
seanmonstar deleted the sean/kzoqpqwtlpon branch September 9, 2026 15:03
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.

2 participants