diff options
Diffstat (limited to 'src/http/modules/ngx_http_event_proxy_handler.c')
-rw-r--r-- | src/http/modules/ngx_http_event_proxy_handler.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_event_proxy_handler.c b/src/http/modules/ngx_http_event_proxy_handler.c index af3546863..d7d61785f 100644 --- a/src/http/modules/ngx_http_event_proxy_handler.c +++ b/src/http/modules/ngx_http_event_proxy_handler.c @@ -309,7 +309,9 @@ static int ngx_http_proxy_read_response_header(ngx_event_t *ev) if (n == 0) { ngx_log_debug(c->log, "CLOSE proxy"); - ngx_del_event(ev, NGX_READ_EVENT); +#if 0 + ngx_del_event(ev, NGX_READ_EVENT, NGX_CLOSE_EVENT); +#endif ngx_event_close_connection(ev); p->hunk_n = 0; @@ -439,7 +441,9 @@ static int ngx_http_proxy_read_response_body(ngx_event_t *ev) if (n == 0) { ngx_log_debug(c->log, "CLOSE proxy"); - ngx_del_event(ev, NGX_READ_EVENT); +#if 0 + ngx_del_event(ev, NGX_READ_EVENT, NGX_CLOSE_EVENT); +#endif ngx_event_close_connection(ev); p->hunk_n = 0; |