summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2017-08-12 12:59:58 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2017-08-12 12:59:58 -0400
commit748fc860fb5f7a34ec9ab3a785cd4e552a521d41 (patch)
treeeeb02b7ba2220c7b990e184e76e2cbce397a50c7
parent85325d9c1954695c826e61c05b46c8e4cf7362a6 (diff)
downloadlighttpd1.4-748fc860fb5f7a34ec9ab3a785cd4e552a521d41.tar.gz
lighttpd1.4-748fc860fb5f7a34ec9ab3a785cd4e552a521d41.zip
[mod_fastcgi] fix return when streaming min buffer
fix incorrect return value when server.stream-response-body = 2
-rw-r--r--src/mod_fastcgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_fastcgi.c b/src/mod_fastcgi.c
index 8bcd4757..21ac0fa5 100644
--- a/src/mod_fastcgi.c
+++ b/src/mod_fastcgi.c
@@ -368,7 +368,7 @@ static handler_t fcgi_recv_parse(server *srv, connection *con, struct http_respo
int fin = 0;
if (0 == n) {
- if (!(fdevent_event_get_interest(srv->ev, hctx->fd) & FDEVENT_IN)) return 0;
+ if (!(fdevent_event_get_interest(srv->ev, hctx->fd) & FDEVENT_IN)) return HANDLER_GO_ON;
log_error_write(srv, __FILE__, __LINE__, "ssdsb",
"unexpected end-of-file (perhaps the fastcgi process died):",
"pid:", hctx->proc->pid,