]> granicus.if.org Git - apache/commitdiff
mod_proxy_fcgi: follow up to r1592032.
authorYann Ylavic <ylavic@apache.org>
Tue, 17 Jun 2014 10:37:15 +0000 (10:37 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 17 Jun 2014 10:37:15 +0000 (10:37 +0000)
Also break the outer loop when "sending stdin" fails.

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

modules/proxy/mod_proxy_fcgi.c

index 71ec004dc3d2d7d49f5c3d742a78b5ca4e3c1d4a..8317fd837561fa549c36845dbae4bb84f0893535 100644 (file)
@@ -474,6 +474,9 @@ static apr_status_t dispatch(proxy_conn_rec *conn, proxy_dir_conf *conf,
                 to_send -= write_this_time;
                 iobuf_cursor += write_this_time;
             }
+            if (rv != APR_SUCCESS) {
+                break;
+            }
 
             if (last_stdin) {
                 pfd.reqevents = APR_POLLIN; /* Done with input data */