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

fix(http1): send error when dispatcher is dropped mid-body#4069
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
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