Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix connection state on decompression failure #10676

Merged
merged 1 commit into from
Apr 3, 2024
Merged

Conversation

yawkat
Copy link
Member

@yawkat yawkat commented Apr 2, 2024

If there was a failure during decompression in a LastHttpContent, the last-ness would be lost. This leads to an inconsistent connection state because PipeliningServerHandler is still expecting more request body content but the next message could be a new request.

This fix sends a LastHttpContent in this case.

Found by fuzzing.

If there was a failure during decompression in a LastHttpContent, the last-ness would be lost. This leads to an inconsistent connection state because PipeliningServerHandler is still expecting more request body content but the next message could be a new request.

This fix sends a LastHttpContent in this case.
@yawkat yawkat added the type: bug Something isn't working label Apr 2, 2024
@yawkat yawkat added this to the 4.3.14 milestone Apr 2, 2024
@yawkat yawkat requested a review from sdelamo April 2, 2024 14:49
Copy link

sonarcloud bot commented Apr 2, 2024

@sdelamo sdelamo merged commit 527f9ab into 4.3.x Apr 3, 2024
15 checks passed
@sdelamo sdelamo deleted the decompression-fail branch April 3, 2024 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants