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

--- Comment #23 from Yann Ylavic <ylavic....@gmail.com> ---
> so to sum up:
> * If no filter is in place the request will be passed as-is to the upstream
> server, regardless whether it is with CL or chunked. Omitting CL (convert to
> chunks) in this case would mean that a upstream server is not able to reject
> a potentionally to large request body in advance.

In 2.4.x, mod_proxy won't send chunked TE unless proxy-sendchunked is set. If
the request body is chunked then mod_proxy will (by default) spool it.

The cases where the body is streamed (passed as-is) is when there is a CL and
either there is no resource filter or the body can be prefetched (<16K and
immediately available).

> * If a filter is in place and the client has sent a CL, mod_proxy will spool
> into memory/on disk, and depending on the filter either send chunks or have
> a modified CL to send to the backend.

If/after the body is spooled, mod_proxy will always send a CL to the backend
since the length is known.


Maybe the code is a better explanation here afterwall..
2.4.x:
https://github.com/apache/httpd/blob/2.4.x/modules/proxy/mod_proxy_http.c#L530
trunk:
https://github.com/apache/httpd/blob/trunk/modules/proxy/mod_proxy_http.c#L627

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org

Reply via email to