tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50505] New: 505 HTTP Version Not Supported
Date Tue, 21 Dec 2010 09:57:35 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50505

           Summary: 505 HTTP Version Not Supported
           Product: Tomcat 6
           Version: 6.0.29
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connectors
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: knight@nhn.com


My Service used CometProcessor, using tomcat 6.0.29 server.
505 HTTP Version Not Supported error happened.
So, I changed to tomcat 6.0.20 server instead of 6.0.29. There is no error. 

I did not change any configuration and just changed tomcat server.

in server.xml

    <Connector acceptorThreadCount="4" socket.tcpNoDelay="true"
connectionTimeout="20000"
     port="10129" maxThreads="512" backlog="1000"
protocol="org.apache.coyote.http11.Http11NioProtocol"
     useComet="true" redirectPort="8443" />


I saw the HTTP11NioProtocol
source(java\org\apache\coyote\http11\Http11NioProtocol.java) and found
difference of Http11NioProtocol.java between tomcat 6.0.20 and 6.0.29. 

in Http11NioProtocol.java

public SocketState process(NioChannel socket) {
..
 if (processor.comet) {
                        NioEndpoint.KeyAttachment att =
(NioEndpoint.KeyAttachment)socket.getAttachment(false);
                        socket.getPoller().add(socket,att.getCometOps());
                    } else {
                        release(socket);  <== 6.0.29 added 
                        socket.getPoller().add(socket);
                    }
..
}

is it possible to 505 error when releasing socket???

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message