Mercurial > hg > nginx
changeset 5440:cbb9a6c7493c
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.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Mon, 11 Nov 2013 18:49:35 +0400 |
parents | 9b3bbaddb1ef |
children | 43ccaf8e8728 |
files | src/http/ngx_http_request_body.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_request_body.c Mon Nov 11 01:59:47 2013 -0800 +++ b/src/http/ngx_http_request_body.c Mon Nov 11 18:49:35 2013 +0400 @@ -43,7 +43,7 @@ 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; }