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 47797] The body of the request is lost when you send the POST method !
Date Fri, 02 Oct 2009 15:39:05 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47797

Damien Bonvillain <kame@cinemasie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kame@cinemasie.com

--- Comment #21 from Damien Bonvillain <kame@cinemasie.com> 2009-10-02 08:38:54 PDT
---
Just a quick history note: I opened #44673 because I had a real problem of POST
body lost. In my case: a servlet reads the request body directly from
request.getInputStream(), and nothing happens. Tracing that call, the VM is
stuck in a native call to read0 on the socket. Extremely hard to reproduce in
my case. Dumping the network traffic, the cases we found so far were that the
POST query was sent as two packets by IE, and the second packet was missing,
but not missing as a dropped packet but more like the client didn't bother of
sending it. More precisely, the client sent the first packet, which was
ACKnowledged by the server... and when the IE browser was killed (in that case,
the IE client is frozen) the RST,ACK packet sent by the client matches the TCP
sequence number specified by the ACK packet sent by the server.

So, basically, Tomcat received a POST request with a Content-Length header
specifying there were more bytes to read, the Servlet reads from the
InputStream, then Tomcat fills its buffer and ends up in blocking IO...
unblocked only when the client resets the connection.

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