Nicolas Richeton's blog

Set Jetty buffer size (Maven)

☕️ 1 min read

Working with large cookies and jetty, you may have faced this error :

2010-03-11 18:18:31.275:WARN::HttpException(413,FULL head,null)

This is because jetty allows only 4ko for HTTP request and response headers. Using large cookies is enough to reach the limit.

To add more room for headers, simply add


to your connector configuration (16k should be enough).

Full jetty plug-in configuration :

<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">