From d6d845cfcd038e0c5608dc9c4460efed0ff7ec36 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Mon, 16 Jun 2014 23:56:06 +0000 Subject: [PATCH] Fix bug introduced in r1591508 which resulted in the final empty FCGI_STDIN not being sent. Interaction with latest uWSGI (and probably other protocol implementations) breaks without this. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1603027 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/mod_proxy_fcgi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/proxy/mod_proxy_fcgi.c b/modules/proxy/mod_proxy_fcgi.c index d668c5424a..71a4e2c21c 100644 --- a/modules/proxy/mod_proxy_fcgi.c +++ b/modules/proxy/mod_proxy_fcgi.c @@ -478,7 +478,7 @@ static apr_status_t dispatch(proxy_conn_rec *conn, proxy_dir_conf *conf, if (last_stdin) { pfd.reqevents = APR_POLLIN; /* Done with input data */ - if (writebuflen) { /* empty AP_FCGI_STDIN not already sent? */ + /* signal EOF (empty FCGI_STDIN) */ ap_fcgi_fill_in_header(&header, AP_FCGI_STDIN, request_id, 0, 0); ap_fcgi_header_to_array(&header, farray); @@ -491,7 +491,6 @@ static apr_status_t dispatch(proxy_conn_rec *conn, proxy_dir_conf *conf, *err = "sending empty stdin"; break; } - } } } -- 2.50.1