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 2016/04/23 15:34:27 UTC

[Bug 57661] Delay sending of 100 continue response until application tries to read request body

https://bz.apache.org/bugzilla/show_bug.cgi?id=57661

--- Comment #1 from Tobias Oberlies <to...@sap.com> ---
It is unfortunate that Tomcat unconditionally send 100 CONTINUE
acknowledgements. (In Tomcat 7 this is triggered by the StandardContextValve.)

The "Expect: 100-continue" is important for clients that want to send a large
POST request but are unable to read the response before they have sent the
complete request body (e.g. the Apache httpclient). These clients could send
only headers plus the "Expect: 100-continue" and would then see an error
response (e.g. 403). With the current behaviour of Tomcat however, they are
asked to send the entity, the server application responds with an error, but
the client doesn't see it (assuming the request entity is larger than the
swallow size, i.e. approx. 2 MB). Instead the client only sees an exception
("connection reset").

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