# HG changeset patch # User Ruslan Ermilov # Date 1444111029 -10800 # Node ID 4b4aee40c508e79a536d85e74ae1ccfa19a3e5c2 # Parent 5eb4d7541107b9c259cda8c71c0d242d83836407 Stream: delete proxy connection timer after SSL handshake. The timer remained active and could drop active SSL connection. diff -r 5eb4d7541107 -r 4b4aee40c508 src/stream/ngx_stream_proxy_module.c --- a/src/stream/ngx_stream_proxy_module.c Sun Jul 12 08:31:38 2015 -0700 +++ b/src/stream/ngx_stream_proxy_module.c Tue Oct 06 08:57:09 2015 +0300 @@ -759,6 +759,10 @@ 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;