]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mod_proxy_http: fix load-balancer fallback for requests with a body.
authorYann Ylavic <ylavic@apache.org>
Thu, 31 Oct 2019 14:15:07 +0000 (14:15 +0000)
committerYann Ylavic <ylavic@apache.org>
Thu, 31 Oct 2019 14:15:07 +0000 (14:15 +0000)
commit729909018201bf94587a430414f59cc9fbf64547
tree067383aaba7643909c86912fbe83ee7febe30d42
parent794f293560321f0e438552283f03236312416131
mod_proxy_http: fix load-balancer fallback for requests with a body.

Since r1656259 (or r1656259 in 2.4.41) and the move of prefetch before connect,
the balancer fallback case where proxy_http_handler() is re-entered with the
next balancer member broke.

We need to save the body (partially) prefetched the first time and reuse it on
successive calls, otherwise we might forward partial or empty body.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869216 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
modules/proxy/mod_proxy_http.c