a non-active client connection must not closed after send timeout

This commit is contained in:
Igor Sysoev 2007-01-19 12:22:32 +00:00
parent 66f76d2f72
commit ae2006b2fe

View File

@ -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) {