DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33714>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33714

           Summary: Apache-Coyote/1.1 HTTP header size too limited
           Product: Tomcat 5
           Version: 5.5.7
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connector:Coyote
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


The Apache-Coyote/1.1 connector is unable to deal with a moderate number/size 
of incoming HTTP header fields.  The Apache HTTPD web server seams to deal 
with this quite well via LimitRequestFields and LimitRequestFieldsize, and in 
the default configuration, really well.

To see the problem with the Coyote connector, run:

  java UploadHeaders http://localhost:8080

after Tomcat has been installed onto a system and started, with this program:

------------------------------------------------------------
import java.net.*;
public class UploadHeaders {
    public static void main ( String args[] ) throws Exception {
        char c[] = new char[1024];
        for (int loop=0; loop<c.length; ++loop) {
            c[loop] = (char)('A'+(loop%26));
            }
        String line = new String(c);
        URL url = new URL(args[0]);
        URLConnection con = url.openConnection();
        con.setRequestProperty( "Testing1", line );
        con.setRequestProperty( "Testing2", line );
        con.setRequestProperty( "Testing3", line );
        con.setRequestProperty( "Testing4", line );
        con.getInputStream().close();
        System.out.println( "OK" );
        }
    }
------------------------------------------------------------

An exception is thrown instead of seeing 'OK'.  Run again with:

  java UploadHeaders http://www.apache.org

to see 'OK' output.

Apache HTTPD deals with a large number/size of HTTP headers very well.  The 
Coyote connector in comparison does very poorly.

Can/will this be fixed in the Coyote connector?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to