-
Notifications
You must be signed in to change notification settings - Fork 40.9k
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
Add support for configuring Netty's request decoding limits (initial line length, header size, and chunk size) #9955
Comments
Thanks for the sample. Improving this will require an enhancement to Reactor Netty. To that end I've opened reactor/reactor-netty#150. I've tentatively scheduled this for M5, but we're reliant on the Reactor Netty enhancement being available. |
The underlying Reactor Netty issue has not yet been fixed so this needs to be pushed back. |
Looks like this was backported to 0.7 reactor/reactor-netty#263 |
We've added a Here's an example: @Configuration
public class ServerConfiguration {
@Bean
public NettyServerCustomizer serverCustomizer() {
return options -> options.maxInitialLineLength(LINE_LENGTH).initialBufferSize(BUFFER_SIZE);
}
} Spring Boot 2.0.RC1 depends on Reactor Netty 0.7.3, which contains those changes. No further changes are required in Spring Boot for now. |
I use reactor netty in my spring boot project. I get 404 when I request a long URI (request header is about 5KB, <8KB), like this:
http://myhost/live/filter?ids=...&a=...&b=..&c=...
I reproduce this error in this very simple project. You can find it:
https://github.com/PKUliwp/URI-test
I try to use jetty and undertow, and they are ok for same request. But I still want to use netty. I think there is a way to config this property, though I find nothing from reference. I want to know how to config the embedded netty to let my server work when it meets long URI.
The text was updated successfully, but these errors were encountered: