Default "headerBufferSizeBytes" 8192 is causing connector creating error
------------------------------------------------------------------------
Key: GERONIMO-4720
URL: https://issues.apache.org/jira/browse/GERONIMO-4720
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Components: Jetty
Affects Versions: 2.2
Environment: latest Jetty 7 trunk build +sun jdk 6
Reporter: Shawn Jiang
Assignee: Shawn Jiang
Currently, the Default "headerBufferSizeBytes" size is 8192.
In org.apache.geronimo.jetty7.connector.JettyConnector
{code}
public void setHeaderBufferSizeBytes(int size) {
//TODO see https://bugs.eclipse.org/bugs/show_bug.cgi?id=280843
if (size == listener.getRequestBufferSize()) throw new
IllegalArgumentException("Do not set the header buffer size to the same as the
request buffer size: " + listener.getRequestBufferSize());
if (size == listener.getResponseBufferSize()) throw new
IllegalArgumentException("Do not set the header buffer size to the same as the
response buffer size: " + listener.getResponseBufferSize());
listener.setRequestHeaderSize(size);
listener.setResponseHeaderSize(size);
}
{code}
So that size == listener.getRequestBufferSize() will always be true. Which
will cause IllegalArgumentException when creating Jetty connectors.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.