Skip to content

Fixes #16090 - Size the PROXY v2 buffer to fit the max proxy header config - #16199

Open
lorban wants to merge 2 commits into
jetty-12.0.xfrom
fix/12.0.x/16090-proxy-v2-large-header
Open

lorban wants to merge 2 commits into
jetty-12.0.xfrom
fix/12.0.x/16090-proxy-v2-large-header

Conversation

@lorban

@lorban lorban commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Fixes #16090

The buffer was allocated with the default input buffer size of 2048 bytes, so a PROXY v2 header larger than that made the connection spin until idle timeout.

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
@lorban
lorban requested a review from sbordet November 20, 2026 14:22
@lorban lorban self-assigned this Nov 20, 2026
@lorban lorban added the Bug For general bugs on Jetty side label Nov 20, 2026
@lorban lorban moved this to 👀 In review in Jetty 12.0.42 Nov 20, 2026
@lorban
lorban requested a review from sbordet November 23, 2026 13:55
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
@lorban
lorban force-pushed the fix/12.0.x/16090-proxy-v2-large-header branch from f3ef476 to 4e9c17b Compare November 23, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug For general bugs on Jetty side

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

ProxyConnectionFactory: PROXY v2 header larger than the input buffer hangs the connection; setMaxProxyHeader() above ~4 KB has no effect

2 participants