Latest update - 7260
This commit is contained in:
@@ -2024,8 +2024,6 @@ ngx_http_upstream_send_request(ngx_http_request_t *r, ngx_http_upstream_t *u,
|
|||||||
|
|
||||||
/* rc == NGX_OK */
|
/* rc == NGX_OK */
|
||||||
|
|
||||||
u->request_body_sent = 1;
|
|
||||||
|
|
||||||
if (c->write->timer_set) {
|
if (c->write->timer_set) {
|
||||||
ngx_del_timer(c->write);
|
ngx_del_timer(c->write);
|
||||||
}
|
}
|
||||||
@@ -2052,11 +2050,19 @@ ngx_http_upstream_send_request(ngx_http_request_t *r, ngx_http_upstream_t *u,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngx_add_timer(c->read, u->conf->read_timeout);
|
if (!u->request_body_sent) {
|
||||||
|
u->request_body_sent = 1;
|
||||||
|
|
||||||
if (c->read->ready) {
|
if (u->header_sent) {
|
||||||
ngx_http_upstream_process_header(r, u);
|
return;
|
||||||
return;
|
}
|
||||||
|
|
||||||
|
ngx_add_timer(c->read, u->conf->read_timeout);
|
||||||
|
|
||||||
|
if (c->read->ready) {
|
||||||
|
ngx_http_upstream_process_header(r, u);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user