Mercurial > hg > nginx-tests
comparison 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 |
comparison
equal
deleted
inserted
replaced
1131:7cce4d12579c | 1132:3d312b6a1a19 |
---|---|
251 ############################################################################### | 251 ############################################################################### |
252 | 252 |
253 sub get { | 253 sub get { |
254 my ($uri, $port) = @_; | 254 my ($uri, $port) = @_; |
255 my $s = get_ssl_socket($ctx, port($port)) or return; | 255 my $s = get_ssl_socket($ctx, port($port)) or return; |
256 http_get($uri, socket => $s); | 256 my $r = http_get($uri, socket => $s); |
257 $s->close(); | |
258 return $r; | |
257 } | 259 } |
258 | 260 |
259 sub cert { | 261 sub cert { |
260 my ($uri, $port) = @_; | 262 my ($uri, $port) = @_; |
261 my $s = get_ssl_socket(undef, port($port), | 263 my $s = get_ssl_socket(undef, port($port), |