# HG changeset patch # User Valentin Bartenev # Date 1384181375 -14400 # Node ID cbb9a6c7493c3c01323fbc4a61be4a9f0af55ef2 # Parent 9b3bbaddb1ef7bb52bae1e8967ad13b017ea00c4 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. diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c --- 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_ht 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; }