geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn Jiang (JIRA)" <j...@apache.org>
Subject [jira] Created: (GERONIMO-4720) Default "headerBufferSizeBytes" 8192 is causing connector creating error
Date Mon, 29 Jun 2009 13:15:47 GMT
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.


Mime
View raw message