mirror of
https://github.com/nginx/nginx.git
synced 2024-12-12 02:09:04 +08:00
a non-active client connection must not closed after send timeout
This commit is contained in:
parent
66f76d2f72
commit
ae2006b2fe
@ -1700,7 +1700,7 @@ ngx_http_upstream_process_non_buffered_body(ngx_event_t *ev)
|
||||
}
|
||||
}
|
||||
|
||||
if (downstream->write->active) {
|
||||
if (downstream->write->active && !downstream->write->ready) {
|
||||
ngx_add_timer(downstream->write, clcf->send_timeout);
|
||||
|
||||
} else if (downstream->write->timer_set) {
|
||||
@ -1712,7 +1712,7 @@ ngx_http_upstream_process_non_buffered_body(ngx_event_t *ev)
|
||||
return;
|
||||
}
|
||||
|
||||
if (upstream->read->active) {
|
||||
if (upstream->read->active && !upstream->read->ready) {
|
||||
ngx_add_timer(upstream->read, u->conf->read_timeout);
|
||||
|
||||
} else if (upstream->read->timer_set) {
|
||||
|
Loading…
Reference in New Issue
Block a user