Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.c @ 7810:1bf8ab7063de
Upstream: fixed broken connection check with eventport.
For connection close to be reported with eventport on Solaris,
ngx_handle_read_event() needs to be called.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sun, 28 Mar 2021 17:45:37 +0300 |
parents | b1302f1dd2f6 |
children | 1ebd78df4ce7 |
comparison
equal
deleted
inserted
replaced
7809:b1302f1dd2f6 | 7810:1bf8ab7063de |
---|---|
605 #endif | 605 #endif |
606 | 606 |
607 u->store = u->conf->store; | 607 u->store = u->conf->store; |
608 | 608 |
609 if (!u->store && !r->post_action && !u->conf->ignore_client_abort) { | 609 if (!u->store && !r->post_action && !u->conf->ignore_client_abort) { |
610 | |
611 if (ngx_handle_read_event(r->connection->read, 0) != NGX_OK) { | |
612 ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); | |
613 return; | |
614 } | |
615 | |
610 r->read_event_handler = ngx_http_upstream_rd_check_broken_connection; | 616 r->read_event_handler = ngx_http_upstream_rd_check_broken_connection; |
611 r->write_event_handler = ngx_http_upstream_wr_check_broken_connection; | 617 r->write_event_handler = ngx_http_upstream_wr_check_broken_connection; |
612 } | 618 } |
613 | 619 |
614 if (r->request_body) { | 620 if (r->request_body) { |