Mercurial > hg > nginx-tests
diff ssl.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 | e7e968e3eb74 |
line wrap: on
line diff
--- a/ssl.t Wed Feb 15 23:51:49 2017 +0300 +++ b/ssl.t Wed Feb 15 23:59:44 2017 +0300 @@ -253,7 +253,9 @@ sub get { my ($uri, $port) = @_; my $s = get_ssl_socket($ctx, port($port)) or return; - http_get($uri, socket => $s); + my $r = http_get($uri, socket => $s); + $s->close(); + return $r; } sub cert {