Skip to content

Work around HTTP/2 decompression of padded data#5965

Merged
vietj merged 2 commits into5.0from
decompression-padding-5.0
Feb 12, 2026
Merged

Work around HTTP/2 decompression of padded data#5965
vietj merged 2 commits into5.0from
decompression-padding-5.0

Conversation

@vietj
Copy link
Member

@vietj vietj commented Feb 12, 2026

There seems to be a regression in the HTTP/2 decompression that does not account correctly the bytes window refund computation when padding is not zero.

This work around handle padding before decompression, making the pipeline function as if there were no padding.

Motivation:

It seems that Netty HTTP/2 decompression accounts for padding twice, failing the decompression of a response when padding is not zero.

Changes:

When processing a compressed entity, set padding to zero and refund the padding to the original flow controller immediately.
@vietj vietj added this to the 5.0.8 milestone Feb 12, 2026
@vietj vietj self-assigned this Feb 12, 2026
@vietj vietj merged commit 5348c93 into 5.0 Feb 12, 2026
7 checks passed
@vietj vietj deleted the decompression-padding-5.0 branch February 12, 2026 08:57
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.

1 participant