From aa5ca9770eab624b06d6402c219d990135c2b84d Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Tue, 17 Jun 2014 10:37:15 +0000 Subject: [PATCH] mod_proxy_fcgi: follow up to r1592032. 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/proxy/mod_proxy_fcgi.c b/modules/proxy/mod_proxy_fcgi.c index 71ec004dc3..8317fd8375 100644 --- a/modules/proxy/mod_proxy_fcgi.c +++ b/modules/proxy/mod_proxy_fcgi.c @@ -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 */ -- 2.40.0