httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55475] mod_proxy breaks HTTP chunked transfer coding
Date Fri, 13 Sep 2013 10:27:46 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=55475

Yann Ylavic <ylavic.dev@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ylavic.dev@gmail.com

--- Comment #2 from Yann Ylavic <ylavic.dev@gmail.com> ---
Created attachment 30830
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30830&action=edit
Detect incomplete body in HTTP input filter and return APR_INCOMPLETE

The problem is that mod_proxy_http stops forwarding backend's data when it gets
APR_EOF.

Since it does not know anything about the state of the body it forwards
(http_input_filter's BODY_CHUNK/BODY_LENGTH/BODY_NONE), APR_EOF may be a
legitimate end-of-body returned by the core_input_filter. Hence it can't do
much better at its level.

IMHO, the fix has to be in the http_input_filter.

For an output filter of mine (2.2.x) taking care about the truncated response
body, I use the attached patch which does the job , and is quite simple...

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message