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 44448] New: - Invalid Response if HTTP Status = 304
Date Mon, 18 Feb 2008 17:36:13 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=44448>.
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=44448

           Summary: Invalid Response if HTTP Status = 304
           Product: Tomcat 5
           Version: 5.5.25
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connector:AJP
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: tneidhart@know-center.at


Configuration:

apache httpd (2.2.6) -> mod_jk (1.2.25) -> tomcat (5.5.25)

If a request to tomcat results in a 304 (not modified) response, tomcat also
sends a body > 0: 

correct:
x.x.x.x - - [05/Feb/2008:11:06:17+0100] "GET /download/userResources/logo
HTTP/1.1" 200 39897

wrong (truncated body, should be 0):
x.x.x.x - - [05/Feb/2008:11:06:27+0100] "GET /download/userResources/logo
HTTP/1.1" 304 16368

this also results in an error in the mod_jk.log file:

[Mon Feb 04 19:03:25.826 2008] [5826:1325496672] [info]
ajp_process_callback::jk_ajp_common.c (1603): Writing to client aborted or
client network problems
[Mon Feb 04 19:03:25.826 2008] [5826:1325496672] [info]
ajp_service::jk_ajp_common.c (2186): (worker1) sending request to tomcat failed
(unrecoverable), because of client write error (attempt=1)
[Mon Feb 04 19:03:25.827 2008] [5826:1325496672] [info] service::jk_lb_worker.c
(1188): unrecoverable error 200, request failed. Client failed in the middle of
request, we can't recover to another instance.
[Mon Feb 04 19:03:25.827 2008] [5826:1325496672] [info] jk_handler::mod_jk.c
(2357): Aborting connection for worker=router
[Mon Feb 04 19:03:25.877 2008] [5828:1325496672] [info]
ajp_process_callback::jk_ajp_common.c (1603): Writing to client aborted or
client network problems
[Mon Feb 04 19:03:25.877 2008] [5828:1325496672] [info]
ajp_service::jk_ajp_common.c (2186): (worker1) sending request to tomcat failed
(unrecoverable), because of client write error (attempt=1)
[Mon Feb 04 19:03:25.878 2008] [5828:1325496672] [info] service::jk_lb_worker.c
(1188): unrecoverable error 200, request failed. Client failed in the middle of
request, we can't recover to another instance.
[Mon Feb 04 19:03:25.878 2008] [5828:1325496672] [info] jk_handler::mod_jk.c
(2357): Aborting connection for worker=router

This behavious has been encoutered for different version of mod_jk, tomcat and
mod_proxy_ajp, and seems to be a problem of the AJP Connector as the same
configuration with mod_proxy_http is working fine.

The same issue has been reported before, and was reported to be fixed
http://issues.apache.org/bugzilla/show_bug.cgi?id=40317.

-- 
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