By default jetty 12 automatically drops the connection if request size is larger than ~ 1MB. Is there a way to set a larger request size?
I’ve tried
HttpConfiguration httpConfig = new HttpConfiguration();
httpConfig.setRequestHeaderSize(100 * 1024 * 1024); // 100MB
but is not working.
I found that on older version you can set this.server.setAttribute("org.eclipse.jetty.server.Request.maxFormContentSize", 200 * 1024 * 1024);
but this is not working as well.
I’m interesting in doing this programmatically since I’m embedding Jetty in a larger app.
I’m using Jetty 12.0.10 with java 21
To increase the request size so the server doesn’t drop the connection