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

server.max-http-request-header-size doesn't affect Netty server with http2 enabled #36766

Closed

Conversation

NersesAM
Copy link
Contributor

@NersesAM NersesAM commented Aug 5, 2023

Setting server.max-http-request-header-size doesn't work when http2 is enabled on Netty server.

I have created a small repro project https://github.com/NersesAM/netty-http2-bug

Steps to reproduce:

  1. checkout https://github.com/NersesAM/netty-http2-bug
  2. Start the server NettyHttp2BugApplication. max-http-request-header-size in application.yml file is set to 16k
  3. Hit it with the following curl command which has forced http2 and header size ~9k which is over default 8K size.
curl -IXGET --http2-prior-knowledge --location "http://localhost:8080" \
    -H "Accept: application/json" \
    -H "large-header1: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Id neque aliquam vestibulum morbi. Mattis vulputate enim nulla aliquet. Dignissim suspendisse in est ante in nibh mauris cursus mattis. Aliquet nec ullamcorper sit amet risus nullam eget felis. Nascetur ridiculus mus mauris vitae ultricies leo integer. Proin sagittis nisl rhoncus mattis rhoncus urna. Id diam vel quam elementum pulvinar etiam non. Ut venenatis tellus in metus vulputate eu scelerisque felis. Turpis egestas maecenas pharetra convallis posuere morbi. Tempor orci eu lobortis elementum nibh tellus molestie nunc. Mauris commodo quis imperdiet massa tincidunt. Et sollicitudin ac orci phasellus egestas. Consectetur lorem donec massa sapien faucibus et molestie ac feugiat. Pulvinar mattis nunc sed blandit libero volutpat sed. Nulla facilisi nullam vehicula ipsum a arcu cursus. Justo laoreet sit amet cursus sit amet.Eget lorem dolor sed viverra ipsum. Lacus sed turpis tincidunt id. Senectus et netus et malesuada fames ac turpis. Eget nullam non nisi est sit amet. Sed viverra ipsum nunc aliquet bibendum enim facilisis gravida. Cursus vitae congue mauris rhoncus aenean vel elit. Sit amet luctus venenatis lectus magna fringilla urna porttitor rhoncus. Nibh tortor id aliquet lectus proin nibh nisl condimentum. Risus viverra adipiscing at in tellus integer. Elit sed vulputate mi sit amet mauris commodo quis imperdiet. Arcu non odio euismod lacinia at quis risus. Purus gravida quis blandit turpis cursus. Dui sapien eget mi proin sed libero enim sed. Vel orci porta non pulvinar neque laoreet suspendisse interdum consectetur. Posuere urna nec tincidunt praesent semper feugiat. Tortor vitae purus faucibus ornare suspendisse sed. Risus commodo viverra maecenas accumsan lacus. Massa massa ultricies mi quis hendrerit dolor magna. Sed turpis tincidunt id aliquet risus feugiat in. Scelerisque felis imperdiet proin fermentum. Orci a scelerisque purus semper. Et molestie ac feugiat sed lectus. Amet nisl purus in mollis nunc. Dui sapien eget mi proin sed. Arcu odio ut sem nulla pharetra diam. Ipsum nunc aliquet bibendum enim. Tempor commodo ullamcorper a lacus vestibulum sed arcu non odio." \
    -H "large-header2: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Id neque aliquam vestibulum morbi. Mattis vulputate enim nulla aliquet. Dignissim suspendisse in est ante in nibh mauris cursus mattis. Aliquet nec ullamcorper sit amet risus nullam eget felis. Nascetur ridiculus mus mauris vitae ultricies leo integer. Proin sagittis nisl rhoncus mattis rhoncus urna. Id diam vel quam elementum pulvinar etiam non. Ut venenatis tellus in metus vulputate eu scelerisque felis. Turpis egestas maecenas pharetra convallis posuere morbi. Tempor orci eu lobortis elementum nibh tellus molestie nunc. Mauris commodo quis imperdiet massa tincidunt. Et sollicitudin ac orci phasellus egestas. Consectetur lorem donec massa sapien faucibus et molestie ac feugiat. Pulvinar mattis nunc sed blandit libero volutpat sed. Nulla facilisi nullam vehicula ipsum a arcu cursus. Justo laoreet sit amet cursus sit amet.Eget lorem dolor sed viverra ipsum. Lacus sed turpis tincidunt id. Senectus et netus et malesuada fames ac turpis. Eget nullam non nisi est sit amet. Sed viverra ipsum nunc aliquet bibendum enim facilisis gravida. Cursus vitae congue mauris rhoncus aenean vel elit. Sit amet luctus venenatis lectus magna fringilla urna porttitor rhoncus. Nibh tortor id aliquet lectus proin nibh nisl condimentum. Risus viverra adipiscing at in tellus integer. Elit sed vulputate mi sit amet mauris commodo quis imperdiet. Arcu non odio euismod lacinia at quis risus. Purus gravida quis blandit turpis cursus. Dui sapien eget mi proin sed libero enim sed. Vel orci porta non pulvinar neque laoreet suspendisse interdum consectetur. Posuere urna nec tincidunt praesent semper feugiat. Tortor vitae purus faucibus ornare suspendisse sed. Risus commodo viverra maecenas accumsan lacus. Massa massa ultricies mi quis hendrerit dolor magna. Sed turpis tincidunt id aliquet risus feugiat in. Scelerisque felis imperdiet proin fermentum. Orci a scelerisque purus semper. Et molestie ac feugiat sed lectus. Amet nisl purus in mollis nunc. Dui sapien eget mi proin sed. Arcu odio ut sem nulla pharetra diam. Ipsum nunc aliquet bibendum enim. Tempor commodo ullamcorper a lacus vestibulum sed arcu non odio." \
    -H "large-header3: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Id neque aliquam vestibulum morbi. Mattis vulputate enim nulla aliquet. Dignissim suspendisse in est ante in nibh mauris cursus mattis. Aliquet nec ullamcorper sit amet risus nullam eget felis. Nascetur ridiculus mus mauris vitae ultricies leo integer. Proin sagittis nisl rhoncus mattis rhoncus urna. Id diam vel quam elementum pulvinar etiam non. Ut venenatis tellus in metus vulputate eu scelerisque felis. Turpis egestas maecenas pharetra convallis posuere morbi. Tempor orci eu lobortis elementum nibh tellus molestie nunc. Mauris commodo quis imperdiet massa tincidunt. Et sollicitudin ac orci phasellus egestas. Consectetur lorem donec massa sapien faucibus et molestie ac feugiat. Pulvinar mattis nunc sed blandit libero volutpat sed. Nulla facilisi nullam vehicula ipsum a arcu cursus. Justo laoreet sit amet cursus sit amet.Eget lorem dolor sed viverra ipsum. Lacus sed turpis tincidunt id. Senectus et netus et malesuada fames ac turpis. Eget nullam non nisi est sit amet. Sed viverra ipsum nunc aliquet bibendum enim facilisis gravida. Cursus vitae congue mauris rhoncus aenean vel elit. Sit amet luctus venenatis lectus magna fringilla urna porttitor rhoncus. Nibh tortor id aliquet lectus proin nibh nisl condimentum. Risus viverra adipiscing at in tellus integer. Elit sed vulputate mi sit amet mauris commodo quis imperdiet. Arcu non odio euismod lacinia at quis risus. Purus gravida quis blandit turpis cursus. Dui sapien eget mi proin sed libero enim sed. Vel orci porta non pulvinar neque laoreet suspendisse interdum consectetur. Posuere urna nec tincidunt praesent semper feugiat. Tortor vitae purus faucibus ornare suspendisse sed. Risus commodo viverra maecenas accumsan lacus. Massa massa ultricies mi quis hendrerit dolor magna. Sed turpis tincidunt id aliquet risus feugiat in. Scelerisque felis imperdiet proin fermentum. Orci a scelerisque purus semper. Et molestie ac feugiat sed lectus. Amet nisl purus in mollis nunc. Dui sapien eget mi proin sed. Arcu odio ut sem nulla pharetra diam. Ipsum nunc aliquet bibendum enim. Tempor commodo ullamcorper a lacus vestibulum sed arcu non odio." \
    -H "large-header4: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Id neque aliquam vestibulum morbi. Mattis vulputate enim nulla aliquet. Dignissim suspendisse in est ante in nibh mauris cursus mattis. Aliquet nec ullamcorper sit amet risus nullam eget felis. Nascetur ridiculus mus mauris vitae ultricies leo integer. Proin sagittis nisl rhoncus mattis rhoncus urna. Id diam vel quam elementum pulvinar etiam non. Ut venenatis tellus in metus vulputate eu scelerisque felis. Turpis egestas maecenas pharetra convallis posuere morbi. Tempor orci eu lobortis elementum nibh tellus molestie nunc. Mauris commodo quis imperdiet massa tincidunt. Et sollicitudin ac orci phasellus egestas. Consectetur lorem donec massa sapien faucibus et molestie ac feugiat. Pulvinar mattis nunc sed blandit libero volutpat sed. Nulla facilisi nullam vehicula ipsum a arcu cursus. Justo laoreet sit amet cursus sit amet.Eget lorem dolor sed viverra ipsum. Lacus sed turpis tincidunt id. Senectus et netus et malesuada fames ac turpis. Eget nullam non nisi est sit amet. Sed viverra ipsum nunc aliquet bibendum enim facilisis gravida. Cursus vitae congue mauris rhoncus aenean vel elit. Sit amet luctus venenatis lectus magna fringilla urna porttitor rhoncus. Nibh tortor id aliquet lectus proin nibh nisl condimentum. Risus viverra adipiscing at in tellus integer. Elit sed vulputate mi sit amet mauris commodo quis imperdiet. Arcu non odio euismod lacinia at quis risus. Purus gravida quis blandit turpis cursus. Dui sapien eget mi proin sed libero enim sed. Vel orci porta non pulvinar neque laoreet suspendisse interdum consectetur. Posuere urna nec tincidunt praesent semper feugiat. Tortor vitae purus faucibus ornare suspendisse sed. Risus commodo viverra maecenas accumsan lacus. Massa massa ultricies mi quis hendrerit dolor magna. Sed turpis tincidunt id aliquet risus feugiat in. Scelerisque felis imperdiet proin fermentum. Orci a scelerisque purus semper. Et molestie ac feugiat sed lectus. Amet nisl purus in mollis nunc. Dui sapien eget mi proin sed. Arcu odio ut sem nulla pharetra diam. Ipsum nunc aliquet bibendum enim. Tempor commodo ullamcorper a lacus vestibulum sed arcu non odio."
  1. Observe 431 status code returned instead of expected 200

Enabling Debug logging we can see following, at info level there are no logs printed

2023-08-05 12:09:22,541 DEBUG [reactor-http-nio-2] i.n.c.DefaultChannelPipeline: Discarded message pipeline : [reactor.left.httpCodec, reactor.left.h2MultiplexHandler, DefaultChannelPipeline$TailContext#0]. Channel : [id: 0x84aa76b7, L:/127.0.0.1:8080 - R:/127.0.0.1:55365].
2023-08-05 12:09:22,546 DEBUG [reactor-http-nio-2] i.n.u.i.l.AbstractInternalLogger: Stream exception thrown for unknown stream 1.
io.netty.handler.codec.http2.Http2Exception$HeaderListSizeException: Header size exceeded max allowed size (8192)
	at io.netty.handler.codec.http2.Http2Exception.headerListSizeError(Http2Exception.java:195)
	at io.netty.handler.codec.http2.Http2CodecUtil.headerListSizeExceeded(Http2CodecUtil.java:233)
	at io.netty.handler.codec.http2.HpackDecoder$Http2HeadersSink.finish(HpackDecoder.java:543)
	at io.netty.handler.codec.http2.HpackDecoder.decode(HpackDecoder.java:136)
	at io.netty.handler.codec.http2.DefaultHttp2HeadersDecoder.decodeHeaders(DefaultHttp2HeadersDecoder.java:160)
	at io.netty.handler.codec.http2.DefaultHttp2FrameReader$HeadersBlockBuilder.headers(DefaultHttp2FrameReader.java:733)
	at io.netty.handler.codec.http2.DefaultHttp2FrameReader$2.processFragment(DefaultHttp2FrameReader.java:476)
	at io.netty.handler.codec.http2.DefaultHttp2FrameReader.readHeadersFrame(DefaultHttp2FrameReader.java:484)
	at io.netty.handler.codec.http2.DefaultHttp2FrameReader.processPayloadState(DefaultHttp2FrameReader.java:253)
	at io.netty.handler.codec.http2.DefaultHttp2FrameReader.readFrame(DefaultHttp2FrameReader.java:159)
	at io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder.decodeFrame(DefaultHttp2ConnectionDecoder.java:173)
	at io.netty.handler.codec.http2.DecoratingHttp2ConnectionDecoder.decodeFrame(DecoratingHttp2ConnectionDecoder.java:63)
	at io.netty.handler.codec.http2.Http2ConnectionHandler$FrameDecoder.decode(Http2ConnectionHandler.java:393)
	at io.netty.handler.codec.http2.Http2ConnectionHandler.decode(Http2ConnectionHandler.java:453)
	at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:529)
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:468)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:833)
2023-08-05 12:09:22,554 DEBUG [reactor-http-nio-2] i.n.c.DefaultChannelPipeline: Discarded inbound message DefaultHttp2SettingsAckFrame that reached at the tail of the pipeline. Please check your pipeline configuration.
2023-08-05 12:09:22,554 DEBUG [reactor-http-nio-2] i.n.c.DefaultChannelPipeline: Discarded message pipeline : [reactor.left.httpCodec, reactor.left.h2MultiplexHandler, DefaultChannelPipeline$TailContext#0]. Channel : [id: 0x84aa76b7, L:/127.0.0.1:8080 - R:/127.0.0.1:55365].

Same curl will work if the curl request is done with http 1.1.

This can be fixed with a custom NettyCustomizer uncomment @Component to validate it fixes the problem. But this is unexpected behaviour as the max header size setting should apply regardless which http protocol is used. So I suggest to fix it in Spring boot with this PR.

@pivotal-cla
Copy link

@NersesAM Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-cla
Copy link

@NersesAM Thank you for signing the Contributor License Agreement!

@NersesAM NersesAM changed the base branch from main to 3.1.x August 5, 2023 08:22
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 5, 2023
@NersesAM
Copy link
Contributor Author

NersesAM commented Aug 5, 2023

CONTRIBUTING file is not stating against which branch should I raise PR so I have chosen the current latest release branch. Do I need to create PRs against main, 3.0, 2.7(?) as well?

@@ -83,25 +85,19 @@ private void customizeConnectionTimeout(NettyReactiveWebServerFactory factory, D
private void customizeRequestDecoder(NettyReactiveWebServerFactory factory, PropertyMapper propertyMapper) {
factory.addServerCustomizers((httpServer) -> httpServer.httpRequestDecoder((httpRequestDecoderSpec) -> {
propertyMapper.from(this.serverProperties.getMaxHttpRequestHeaderSize())
.whenNonNull()
Copy link
Contributor Author

@NersesAM NersesAM Aug 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed these as well in this method because PropertyMapper is already initialised with .alwaysApplyingWhenNonNull() so these are redundant

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks but please revert those as they are unrelated.

@scottfrederick
Copy link
Contributor

@NersesAM No need to create additional PRs. We can apply it to the appropriate branch once we've decided the earliest branch to apply the change to, then forward-merge to newer branches.

Copy link
Member

@snicoll snicoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. I've reached out to the reactor team as I don't understand why we need to configure this again when using http2.

@@ -83,25 +85,19 @@ private void customizeConnectionTimeout(NettyReactiveWebServerFactory factory, D
private void customizeRequestDecoder(NettyReactiveWebServerFactory factory, PropertyMapper propertyMapper) {
factory.addServerCustomizers((httpServer) -> httpServer.httpRequestDecoder((httpRequestDecoderSpec) -> {
propertyMapper.from(this.serverProperties.getMaxHttpRequestHeaderSize())
.whenNonNull()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks but please revert those as they are unrelated.

@@ -122,4 +117,9 @@ private void customizeMaxKeepAliveRequests(NettyReactiveWebServerFactory factory
factory.addServerCustomizers((httpServer) -> httpServer.maxKeepAliveRequests(maxKeepAliveRequests));
}

private void customizeHttp2MaxHeaderSize(NettyReactiveWebServerFactory factory, long maxHttpRequestHeaderSize) {
factory.addServerCustomizers(((httpServer) -> httpServer.http2Settings(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks odd to me. This is the first HTTP2-specific setting that I can see. And it being applied regardless of http2 being enabled doesn't look right.

I wonder why using HTTP2 requires to set this setting twice as we're already taking care of that in configuring HttpRequestDecoderSpec.

Copy link
Contributor Author

@NersesAM NersesAM Aug 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

http1.1 uses different netty codec. Compare this stacktrace with the one above and their settings are separate

io.netty.handler.codec.http.TooLongHttpHeaderException: HTTP header is larger than 8192 bytes.
	at io.netty.handler.codec.http.HttpObjectDecoder$HeaderParser.newException(HttpObjectDecoder.java:1091)
	at io.netty.handler.codec.http.HttpObjectDecoder$HeaderParser.parse(HttpObjectDecoder.java:1058)
	at io.netty.handler.codec.http.HttpObjectDecoder.readHeaders(HttpObjectDecoder.java:656)
	at io.netty.handler.codec.http.HttpObjectDecoder.decode(HttpObjectDecoder.java:285)
	at io.netty.handler.codec.http.HttpServerCodec$HttpServerRequestDecoder.decode(HttpServerCodec.java:140)
	at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:529)
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:468)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
	at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:833)

here is where in reactor-netty-http sets the http2 settings into netty
https://github.com/reactor/reactor-netty/blob/99800186555bf874c4a4fdf6abf3e4b2da4fe0ee/reactor-netty-http/src/main/java/reactor/netty/http/server/HttpServerConfig.java#L430C7-L430C7

@snicoll snicoll added the status: waiting-for-feedback We need additional information before we can continue label Aug 8, 2023
@snicoll snicoll added the for: team-attention An issue we'd like other members of the team to review label Aug 10, 2023
@philwebb philwebb added type: bug A general bug and removed status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged labels Aug 16, 2023
@philwebb philwebb added this to the 2.7.x milestone Aug 16, 2023
@philwebb philwebb added the status: on-hold We can't start working on this issue yet label Aug 16, 2023
@mhalbritter mhalbritter removed status: on-hold We can't start working on this issue yet for: team-attention An issue we'd like other members of the team to review labels Aug 17, 2023
@mhalbritter mhalbritter changed the title Fix issue when server.max-http-request-header-size doesn't have effect on Netty server with http2 enabled. server.max-http-request-header-size doesn't affect Netty server with http2 enabled Aug 17, 2023
@mhalbritter mhalbritter self-assigned this Aug 17, 2023
@mhalbritter mhalbritter modified the milestones: 2.7.x, 2.7.15 Aug 17, 2023
mhalbritter pushed a commit that referenced this pull request Aug 17, 2023
Fix an issue that server.max-http-request-header-size doesn't have an
effect on Netty server with http2 enabled.

See gh-36766
@mhalbritter
Copy link
Contributor

Thank you very much! I polished your changes in this commit: dc62e5f

@NersesAM NersesAM deleted the http2-max-header-size branch August 17, 2023 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants