Skip to content

Auto-port 4.1: Fix client_max_window_bits parameter handling in permessage-deflate extension#16435

Merged
normanmaurer merged 3 commits into
4.1from
auto-port-pr-16424-to-4.1
Mar 12, 2026
Merged

Auto-port 4.1: Fix client_max_window_bits parameter handling in permessage-deflate extension#16435
normanmaurer merged 3 commits into
4.1from
auto-port-pr-16424-to-4.1

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #16424 to 4.1
Cherry-picked commit: e216d30


Fixes #16005

Per RFC 7692 section 7.1.2.1, the client_max_window_bits parameter may have a value or no value.

Problem:

  • Server-side: Always ignored client's requested value, using preferredClientWindowSize instead
  • Client-side: Threw NumberFormatException when parameter had no value (null)

Changes:

  • PerMessageDeflateServerExtensionHandshaker: Parse client_max_window_bits value when present
  • PerMessageDeflateClientExtensionHandshaker: Handle null value gracefully to avoid NumberFormatException

Tests:

  • All existing tests pass (13 tests total)
  • Added 4 new regression tests

…xtension (#16424)

Motivation:
Per RFC 7692 section 7.1.2.1, the client_max_window_bits parameter may
have a value or no value.

**Problem:**
- Server-side: Always ignored client's requested value, using
preferredClientWindowSize instead
- Client-side: Threw NumberFormatException when parameter had no value
(null)

Modifications:
- PerMessageDeflateServerExtensionHandshaker: Parse
client_max_window_bits value when present
- PerMessageDeflateClientExtensionHandshaker: Handle null value
gracefully to avoid NumberFormatException

Result:

Fixes #16005

(cherry picked from commit e216d30)
@normanmaurer normanmaurer merged commit 3c6be7e into 4.1 Mar 12, 2026
18 checks passed
@normanmaurer normanmaurer deleted the auto-port-pr-16424-to-4.1 branch March 12, 2026 19:09
@normanmaurer normanmaurer added this to the 4.1.132.Final milestone Mar 12, 2026
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.

3 participants