Roman Arutyunyan
October 06, 2015 02:00AM
details: http://hg.nginx.org/nginx/rev/4b4aee40c508
branches:
changeset: 6258:4b4aee40c508
user: Ruslan Ermilov <ru@nginx.com>
date: Tue Oct 06 08:57:09 2015 +0300
description:
Stream: delete proxy connection timer after SSL handshake.

The timer remained active and could drop active SSL connection.

diffstat:

src/stream/ngx_stream_proxy_module.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

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 @@ ngx_stream_proxy_ssl_handshake(ngx_conne
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;

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

[nginx] Stream: delete proxy connection timer after SSL handshake.

Roman Arutyunyan 884 October 06, 2015 02:00AM



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

Online Users

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