]> granicus.if.org Git - apache/commitdiff
mod_proxy_http: follow up to r1853409: no need to double flush on EOS.
authorYann Ylavic <ylavic@apache.org>
Thu, 14 Feb 2019 08:34:05 +0000 (08:34 +0000)
committerYann Ylavic <ylavic@apache.org>
Thu, 14 Feb 2019 08:34:05 +0000 (08:34 +0000)
[Reverted by r1853565]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1853564 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_http.c

index 06f3ace5a749b56f64b943b282c3ab1da3ce435b..03647e7176c618c6779d93d12a3e5ecb3101ae06 100644 (file)
@@ -372,9 +372,11 @@ static int stream_reqbody_chunked(proxy_http_req_t *req)
          */
         APR_BRIGADE_PREPEND(input_brigade, header_brigade);
 
-        /* Flush here on EOS because we won't stream_reqbody_read() again */
+        /* No flush here since it's done either on the next loop depending
+         * on stream_reqbody_read(), or after the loop when leaving.
+         */
         rv = ap_proxy_pass_brigade(bucket_alloc, r, p_conn, req->origin,
-                                   input_brigade, seen_eos);
+                                   input_brigade, 0);
         if (rv != OK) {
             return rv;
         }