Mercurial > hg > nginx-tests
diff ssl_sni_sessions.t @ 1132:3d312b6a1a19
Tests: avoid $ssl_session_reused tests failure with OpenSSL 1.1.0.
Closing a connection without close_notify worked by an accident,
until it was considered a bug and fixed in OpenSSL 1.1.0:
https://git.openssl.org/?p=openssl.git;h=e70656c
Note though that as of TLS 1.1, failure to properly close a connection
no longer requires that a session not be resumed.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 15 Feb 2017 23:59:44 +0300 |
parents | 8ef51dbb5d69 |
children | 0af58b78df35 |
line wrap: on
line diff
--- a/ssl_sni_sessions.t +++ b/ssl_sni_sessions.t @@ -201,11 +201,15 @@ sub get_ssl_socket { sub get { my ($host, $port, $ctx) = @_; - return http(<<EOF, socket => get_ssl_socket($host, $port, $ctx)); + my $s = get_ssl_socket($host, $port, $ctx) or return; + my $r = http(<<EOF, socket => $s); GET / HTTP/1.0 Host: $host EOF + + $s->close(); + return $r; } ###############################################################################