Latest update - 7260

This commit is contained in:
Hakase
2018-04-06 04:39:29 +09:00
parent c8460c8939
commit 45ac93cdb4
+8 -2
View File
@@ -2024,8 +2024,6 @@ ngx_http_upstream_send_request(ngx_http_request_t *r, ngx_http_upstream_t *u,
/* rc == NGX_OK */
u->request_body_sent = 1;
if (c->write->timer_set) {
ngx_del_timer(c->write);
}
@@ -2052,6 +2050,13 @@ ngx_http_upstream_send_request(ngx_http_request_t *r, ngx_http_upstream_t *u,
return;
}
if (!u->request_body_sent) {
u->request_body_sent = 1;
if (u->header_sent) {
return;
}
ngx_add_timer(c->read, u->conf->read_timeout);
if (c->read->ready) {
@@ -2059,6 +2064,7 @@ ngx_http_upstream_send_request(ngx_http_request_t *r, ngx_http_upstream_t *u,
return;
}
}
}
static ngx_int_t