mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 05:11:37 +08:00
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.
This commit is contained in:
parent
9104757a7d
commit
8885c45e1e
@ -607,6 +607,12 @@ ngx_http_upstream_init_request(ngx_http_request_t *r)
|
||||
u->store = u->conf->store;
|
||||
|
||||
if (!u->store && !r->post_action && !u->conf->ignore_client_abort) {
|
||||
|
||||
if (ngx_handle_read_event(r->connection->read, 0) != NGX_OK) {
|
||||
ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
|
||||
return;
|
||||
}
|
||||
|
||||
r->read_event_handler = ngx_http_upstream_rd_check_broken_connection;
|
||||
r->write_event_handler = ngx_http_upstream_wr_check_broken_connection;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user