Welcome! Log In Create A New Profile

Advanced

[nginx] Upstream: posted requests handling after ssl handshake e...

Maxim Dounin
August 23, 2013 02:22PM
details: http://hg.nginx.org/nginx/rev/13a5f4765887
branches:
changeset: 5340:13a5f4765887
user: Maxim Dounin <mdounin@mdounin.ru>
date: Fri Aug 23 22:18:46 2013 +0400
description:
Upstream: posted requests handling after ssl handshake errors.

Missing call to ngx_http_run_posted_request() resulted in a main request hang
if subrequest's ssl handshake with an upstream server failed for some reason.

Reported by Aviram Cohen.

diffstat:

src/http/ngx_http_upstream.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diffs (23 lines):

diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -1338,13 +1338,19 @@ ngx_http_upstream_ssl_handshake(ngx_conn
c->write->handler = ngx_http_upstream_handler;
c->read->handler = ngx_http_upstream_handler;

+ c = r->connection;
+
ngx_http_upstream_send_request(r, u);

+ ngx_http_run_posted_requests(c);
return;
}

+ c = r->connection;
+
ngx_http_upstream_next(r, u, NGX_HTTP_UPSTREAM_FT_ERROR);

+ ngx_http_run_posted_requests(c);
}

#endif

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

[nginx] Upstream: posted requests handling after ssl handshake e...

Maxim Dounin 825 August 23, 2013 02:22PM



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

Online Users

Guests: 182
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