comparison ssl_verify_depth.t @ 1407:8c764fd93b5e

Tests: adjusted client connect timeout in various tests with SSL.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 30 Nov 2018 12:55:31 +0300
parents 0af58b78df35
children 4e48bf51714f
comparison
equal deleted inserted replaced
1406:6404fd77f367 1407:8c764fd93b5e
140 my ($s); 140 my ($s);
141 141
142 eval { 142 eval {
143 local $SIG{ALRM} = sub { die "timeout\n" }; 143 local $SIG{ALRM} = sub { die "timeout\n" };
144 local $SIG{PIPE} = sub { die "sigpipe\n" }; 144 local $SIG{PIPE} = sub { die "sigpipe\n" };
145 alarm(2); 145 alarm(5);
146 $s = IO::Socket::SSL->new( 146 $s = IO::Socket::SSL->new(
147 Proto => 'tcp', 147 Proto => 'tcp',
148 PeerAddr => '127.0.0.1', 148 PeerAddr => '127.0.0.1',
149 PeerPort => port($port), 149 PeerPort => port($port),
150 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), 150 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(),