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 2010/11/01 04:27:06 UTC

DO NOT REPLY [Bug 50189] New: AJP connector sends GET BODY CHUNK when reading after response closed

https://issues.apache.org/bugzilla/show_bug.cgi?id=50189

           Summary: AJP connector sends GET BODY CHUNK when reading after
                    response closed
           Product: Tomcat 5
           Version: 5.5.23
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connector:AJP
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: jroper2@gmail.com


If a servlet (probably incorrectly) closes the writer/outputstream of a
response, and then attempts to read from the request, the AJP connector sends
GET BODY CHUNK to the mod_jk worker.

This then starts a series of very confusing communication between the worker
and tomcat.  The worker doesn't read it until it makes its next request.  After
making its next request, it reads it, and then sends a response with 0 length. 
At the same time, Tomcat responds to the request made by the worker with
another GET BODY CHUNK, which the worker also responds with a message of 0
length.  Then the really weird thing happens, Tomcat replays the first request
made by that worker.  At this point, based on what I'm looking at with tcpdump,
I get too confused to work out exactly what is happening.

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


DO NOT REPLY [Bug 50189] AJP connector sends GET BODY CHUNK when reading after response closed

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50189

--- Comment #2 from James Roper <jr...@gmail.com> 2010-11-01 20:18:23 EDT ---
The version of mod_jk is 1.2.28 on CentOS 5.4.

If you are unable to reproduce this issue, let me know and I'll do more
investigations to reproduce it on my side, I'll see if I can reproduce it on
later versions of Tomcat and I'll attach tcpdump logs etc.  I haven't done that
yet because the only logs and environment that I have handy are a production
environment, and the logs contain sensitive information, but I'm hoping my
description so far is adequate.

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


DO NOT REPLY [Bug 50189] AJP connector sends GET BODY CHUNK when reading after response closed

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50189

--- Comment #1 from Rainer Jung <ra...@kippdata.de> 2010-11-01 07:42:48 EDT ---
Thanks for the report. Which version of mod_jk and which config are you using?

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


DO NOT REPLY [Bug 50189] AJP connector sends GET BODY CHUNK when reading after response closed

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50189

Clint Morgan <cl...@tasktop.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clint.morgan@tasktop.com

--- Comment #3 from Clint Morgan <cl...@tasktop.com> 2010-11-10 14:22:58 EST ---
I've also hit this issue in tomcat 6.0.26 and 7.0.4. This has been using an
in-house version of the AJP client (webserver-side).

Our symptoms were the same, and we had been working around by disabling
connection sharing across requests.

Following James' advice, I've removed the possibility for a servlet-side read
from the request after the response has been closed. This has resolved the
issue of us.

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


DO NOT REPLY [Bug 50189] AJP connector sends GET BODY CHUNK when reading after response closed

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50189

--- Comment #4 from Mark Thomas <ma...@apache.org> 2011-02-18 11:25:39 EST ---
Fixed in 7.0.x and will be included in 7.0.9.

An attempt to read from the request once the response has been will trigger an
exception.

I'll also propose back-ports for 6.0.x and 5.5.x

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


DO NOT REPLY [Bug 50189] AJP connector sends GET BODY CHUNK when reading after response closed

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50189

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from Mark Thomas <ma...@apache.org> 2011-03-14 07:43:44 EDT ---
This has been fixed in 5.5.x and will be included in 5.5.34 onwards.

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


DO NOT REPLY [Bug 50189] AJP connector sends GET BODY CHUNK when reading after response closed

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50189

--- Comment #5 from Mark Thomas <ma...@apache.org> 2011-02-21 07:53:34 EST ---
Fixed in 6.0.x and will be included in 6.0.33 onwards.

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