comparison stream_ssl_variables.t @ 1870:884e898b9fe7

Tests: unbreak stream_ssl_variables.t with old IO::Socket::SSL. Do not clobber a stream object in test_tls13().
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 23 May 2023 16:30:01 +0400
parents dbb7561a9441
children c924ae8d7104
comparison
equal deleted inserted replaced
1869:5c50786e5da9 1870:884e898b9fe7
139 undef $s; 139 undef $s;
140 140
141 ############################################################################### 141 ###############################################################################
142 142
143 sub test_tls13 { 143 sub test_tls13 {
144 $s = stream(PeerAddr => '127.0.0.1:' . port(8443), SSL => 1); 144 my $s = stream(PeerAddr => '127.0.0.1:' . port(8443), SSL => 1);
145 $s->read() =~ /TLSv1.3/; 145 $s->read() =~ /TLSv1.3/;
146 } 146 }
147 147
148 ############################################################################### 148 ###############################################################################