Commit 524f037d authored by Yann Ylavic's avatar Yann Ylavic
Browse files

mod_proxy_http: follow up to r1836588: nonblocking read for 100-continue body.

Set nonblocking read (req->flushall) when handling 100-continue since no body
is expected to be there already.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1837040 13f79535-47bb-0310-9956-ffa450edef68
parent cbff1259
Loading
Loading
Loading
Loading
+2 −3
Changes for modules/proxy/mod_proxy_http.c: 2 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -2141,15 +2141,14 @@ static int proxy_http_handler(request_rec *r, proxy_worker *worker,
         * req->expecting_100 (i.e. cleared only if mod_proxy_http sent the
         * "100 Continue" according to its policy).
         */
        req->do_100_continue = 1;
        req->do_100_continue = req->flushall = 1;
        req->expecting_100 = r->expecting_100;
        r->expecting_100 = 0;
    }

    /* Should we block while prefetching the body or try nonblocking and flush
     * data to the backend ASAP?
     */
    if (apr_table_get(r->subprocess_env, "proxy-flushall")) {
    else if (apr_table_get(r->subprocess_env, "proxy-flushall")) {
        req->flushall = 1;
    }