Skip to content

fix(http1): send error when dispatcher is dropped mid-body - #4069

Merged
seanmonstar merged 1 commit into
masterfrom
sean/toltptoomnln
May 12, 2026
Merged

seanmonstar merged 1 commit into
masterfrom
sean/toltptoomnln

Conversation

@seanmonstar

Copy link
Copy Markdown
Member

This continues #4016, adding a unit test.

Closes #3995
Closes #4016

Wrap body_tx in a SenderDropGuard that sends an IncompleteMessage
error if the Dispatcher future is dropped while still owning a body
Sender, preventing silent data truncation.
@seanmonstar
seanmonstar merged commit b7a679b into master May 12, 2026
22 checks passed
@seanmonstar
seanmonstar deleted the sean/toltptoomnln branch May 12, 2026 18:56
Rafael-Conde pushed a commit to Rafael-Conde/hyper that referenced this pull request Oct 21, 2026
…4069)

Wrap body_tx in a SenderDropGuard that sends an IncompleteMessage
error if the Dispatcher future is dropped while still owning a body
Sender, preventing silent data truncation.

Closes hyperium#3995
Closes hyperium#4016

Co-authored-by: Pierre Barre <pierre@barre.sh>
Rafael-Conde pushed a commit to Rafael-Conde/hyper that referenced this pull request Oct 21, 2026
…4069)

Wrap body_tx in a SenderDropGuard that sends an IncompleteMessage
error if the Dispatcher future is dropped while still owning a body
Sender, preventing silent data truncation.

Closes hyperium#3995
Closes hyperium#4016

Co-authored-by: Pierre Barre <pierre@barre.sh>
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.

Hyper returns a partial byte array when its runtime is closed mid-read

2 participants