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 41347] New: - No keep-alive in response header
Date Thu, 11 Jan 2007 10:48:29 GMT
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=41347>.
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=41347

           Summary: No keep-alive in response header
           Product: Tomcat 5
           Version: 5.5.20
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connector:HTTP
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: duarthur@yahoo.com


Hi,
I find the information Connection: Keep-Alive never displayed in the response 
header. But If I disable keep-alive by setting maxKeepAliveRequests="1", I 
will see Connection: Close in the response header. 

I found that in the java source file "Http11Processor.java", line 1597, the 
codes are:
if (!keepAlive) {
	headers.addValue(Constants.CONNECTION).setString(Constants.CLOSE);
} else if (!http11 && !error) {
        headers.addValue(Constants.CONNECTION).setString(Constants.KEEPALIVE);
}

I think that "!http11" should be "http11". And I also think the logical is not 
robust here, how about if all the conditions are not satisfied?

Thanks!

-- 
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message