mirror of
https://github.com/nginx/nginx.git
synced 2026-06-27 04:12:05 +00:00
a non-active client connection must not closed after send timeout
This commit is contained in:
parent
66f76d2f72
commit
ae2006b2fe
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue