You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Shawn Jiang (JIRA)" <ji...@apache.org> on 2009/06/29 15:23:47 UTC

[jira] Updated: (GERONIMO-4720) Default "headerBufferSizeBytes" 8192 is causing connector creating error

     [ https://issues.apache.org/jira/browse/GERONIMO-4720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shawn Jiang updated GERONIMO-4720:
----------------------------------

    Attachment: G4720.patch

The patch to change the default "headerBufferSizeBytes"  from 8192 to 8193

> 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
>         Attachments: G4720.patch
>
>
> 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.