aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/stream/ngx_stream_proxy_module.c4
1 files changed, 4 insertions, 0 deletions
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;