From 0079f29326ceed9b3868e4afcebf19de168702f2 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Tue, 6 Oct 2015 08:57:09 +0300 Subject: [PATCH] Stream: delete proxy connection timer after SSL handshake. The timer remained active and could drop active SSL connection. --- src/stream/ngx_stream_proxy_module.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stream/ngx_stream_proxy_module.c b/src/stream/ngx_stream_proxy_module.c index ea142e722..6800500cc 100644 --- a/src/stream/ngx_stream_proxy_module.c +++ b/src/stream/ngx_stream_proxy_module.c @@ -759,6 +759,10 @@ ngx_stream_proxy_ssl_handshake(ngx_connection_t *pc) u->peer.save_session(&u->peer, u->peer.data); } + if (pc->write->timer_set) { + ngx_del_timer(pc->write); + } + ngx_stream_proxy_init_upstream(s); return;