Welcome! Log In Create A New Profile

Advanced

[nginx] SPDY: fixed request hang with the auth request module.

Valentin Bartenev
November 11, 2013 09:58AM
details: http://hg.nginx.org/nginx/rev/cbb9a6c7493c
branches:
changeset: 5440:cbb9a6c7493c
user: Valentin Bartenev <vbart@nginx.com>
date: Mon Nov 11 18:49:35 2013 +0400
description:
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:

src/http/ngx_http_request_body.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 9b3bbaddb1ef -r cbb9a6c7493c src/http/ngx_http_request_body.c
--- 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 @@ 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;
}

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] SPDY: fixed request hang with the auth request module.

Valentin Bartenev 792 November 11, 2013 09:58AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 125
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready