summaryrefslogtreecommitdiff
path: root/src/mod_proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_proxy.c')
-rw-r--r--src/mod_proxy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mod_proxy.c b/src/mod_proxy.c
index 9a28f4f..c61f68b 100644
--- a/src/mod_proxy.c
+++ b/src/mod_proxy.c
@@ -656,6 +656,7 @@ static int proxy_demux_response(server *srv, handler_ctx *hctx) {
}
if (-1 == (r = read(hctx->fd, hctx->response->ptr + hctx->response->used - 1, b))) {
+ if (errno == EAGAIN) return 0;
log_error_write(srv, __FILE__, __LINE__, "sds",
"unexpected end-of-file (perhaps the proxy process died):",
proxy_fd, strerror(errno));