Ticket #938: mod_proxy-EAGAIN.patch
| File mod_proxy-EAGAIN.patch, 0.9 kB (added by jakabosky, 22 months ago) |
|---|
-
src/mod_proxy.c
656 656 } 657 657 658 658 if (-1 == (r = read(hctx->fd, hctx->response->ptr + hctx->response->used - 1, b))) { 659 if (errno == EAGAIN) return 0; 659 660 log_error_write(srv, __FILE__, __LINE__, "sds", 660 661 "unexpected end-of-file (perhaps the proxy process died):", 661 662 proxy_fd, strerror(errno)); -
src/mod_fastcgi.c
2381 2381 2382 2382 /* append to read-buffer */ 2383 2383 if (-1 == (r = read(hctx->fd, b->ptr, toread))) { 2384 if (errno == EAGAIN) return 0; 2384 2385 log_error_write(srv, __FILE__, __LINE__, "sds", 2385 2386 "unexpected end-of-file (perhaps the fastcgi process died):", 2386 2387 fcgi_fd, strerror(errno));

