diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2018-03-17 23:04:22 +0300 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2018-03-17 23:04:22 +0300 |
| commit | 7be60194c12d3565c0ad34cc65206f4c22d4af53 (patch) | |
| tree | 66a93c186e2ac70f7e2e3ffbba8e5b8635a7c5a9 /src/http/ngx_http_upstream.h | |
| parent | 7ef115a7e864573478e3f88d6a4ef689a1b73b92 (diff) | |
| download | nginx-7be60194c12d3565c0ad34cc65206f4c22d4af53.tar.gz nginx-7be60194c12d3565c0ad34cc65206f4c22d4af53.tar.bz2 | |
Upstream: u->request_body_blocked flag.
The flag indicates whether last ngx_output_chain() returned NGX_AGAIN
or not. If the flag is set, we arm the u->conf->send_timeout timer.
The flag complements c->write->ready test, and allows to stop sending
the request body in an output filter due to protocol-specific flow
control.
Diffstat (limited to 'src/http/ngx_http_upstream.h')
| -rw-r--r-- | src/http/ngx_http_upstream.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h index a56238d37..80fa8b3cb 100644 --- a/src/http/ngx_http_upstream.h +++ b/src/http/ngx_http_upstream.h @@ -391,6 +391,7 @@ struct ngx_http_upstream_s { unsigned request_sent:1; unsigned request_body_sent:1; + unsigned request_body_blocked:1; unsigned header_sent:1; }; |
