You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/11/18 13:36:38 UTC
DO NOT REPLY [Bug 32293] New: -
HTTP response 505 and Keep-Alive processing
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=32293>.
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=32293
Summary: HTTP response 505 and Keep-Alive processing
Product: Tomcat 4
Version: 4.1.30
Platform: PC
OS/Version: Windows 2000
Status: NEW
Severity: normal
Priority: P3
Component: Connector:Coyote HTTP/1.1
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: hayashin@ist.fujitsu.com
The following operation was found although it was not so big a problem.
Then telneted to port 8080(tomcat 4.1.30) and gave following request
(bat request because 2 spaspace befor "HTTP/1.1").
----
HEAD /index.html HTTP/1.0
----
response was following
----
HTTP/1.1 505 HTTP Version Not Supported
Date: Thu, 18 Nov 2004 07:34:18 GMT
Server: Apache-Coyote/1.1
Connection: Keep-Alive
----
Although a response header means KEEP-ALIVE processing,
socket close immediately.
I think that correction would be inadequate at 4.1.27 folowing code.
org.apache.coyote.http11.Http11Processor#statusDropsConnection
----
/**
* Determine if we must drop the connection because of the HTTP status
* code. Use the same list of codes as Apache/httpd.
*/
protected boolean statusDropsConnection(int status) {
return status == 400 /* SC_BAD_REQUEST */ ||
status == 408 /* SC_REQUEST_TIMEOUT */ ||
status == 411 /* SC_LENGTH_REQUIRED */ ||
status == 413 /* SC_REQUEST_ENTITY_TOO_LARGE */ ||
status == 414 /* SC_REQUEST_URI_TOO_LARGE */ ||
status == 500 /* SC_INTERNAL_SERVER_ERROR */ ||
status == 503 /* SC_SERVICE_UNAVAILABLE */ ||
status == 501 /* SC_NOT_IMPLEMENTED */;
}
----
I think that 505 should also be included here, but it does not know
whether be else or not.(...or other fix code)
regards,
Naru Hayashi from Japan
--
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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org