diff options
| author | Valentin Bartenev <vbart@nginx.com> | 2013-11-11 18:49:35 +0400 |
|---|---|---|
| committer | Valentin Bartenev <vbart@nginx.com> | 2013-11-11 18:49:35 +0400 |
| commit | df2fc6a9df06dcf334000a66c1173413883e1aba (patch) | |
| tree | 45a0b421359292d3a90f49e0bafffab918b0d9ca /src/http/ngx_http_request_body.c | |
| parent | fa407776111259b1138545e92ff8b428963369c5 (diff) | |
| download | nginx-df2fc6a9df06dcf334000a66c1173413883e1aba.tar.gz nginx-df2fc6a9df06dcf334000a66c1173413883e1aba.tar.bz2 | |
SPDY: fixed request hang with the auth request module.
We should just call post_handler() when subrequest wants to read body, like
it happens for HTTP since rev. f458156fd46a. An attempt to init request body
for subrequests results in hang if the body was not already read.
Diffstat (limited to 'src/http/ngx_http_request_body.c')
| -rw-r--r-- | src/http/ngx_http_request_body.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c index dc1fcde1c..97df69c05 100644 --- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c @@ -43,7 +43,7 @@ ngx_http_read_client_request_body(ngx_http_request_t *r, r->main->count++; #if (NGX_HTTP_SPDY) - if (r->spdy_stream) { + if (r->spdy_stream && r == r->main) { rc = ngx_http_spdy_read_request_body(r, post_handler); goto done; } |
