comparison src/http/ngx_http_request_body.c @ 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 2fda9065d0f4
children 4aa64f695031
comparison
equal deleted inserted replaced
5439:9b3bbaddb1ef 5440:cbb9a6c7493c
41 ngx_http_core_loc_conf_t *clcf; 41 ngx_http_core_loc_conf_t *clcf;
42 42
43 r->main->count++; 43 r->main->count++;
44 44
45 #if (NGX_HTTP_SPDY) 45 #if (NGX_HTTP_SPDY)
46 if (r->spdy_stream) { 46 if (r->spdy_stream && r == r->main) {
47 rc = ngx_http_spdy_read_request_body(r, post_handler); 47 rc = ngx_http_spdy_read_request_body(r, post_handler);
48 goto done; 48 goto done;
49 } 49 }
50 #endif 50 #endif
51 51