Mercurial > hg > nginx-tests
comparison ssl_sni.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 |
---|---|
131 my $s; | 131 my $s; |
132 | 132 |
133 eval { | 133 eval { |
134 local $SIG{ALRM} = sub { die "timeout\n" }; | 134 local $SIG{ALRM} = sub { die "timeout\n" }; |
135 local $SIG{PIPE} = sub { die "sigpipe\n" }; | 135 local $SIG{PIPE} = sub { die "sigpipe\n" }; |
136 alarm(2); | 136 alarm(5); |
137 $s = IO::Socket::SSL->new( | 137 $s = IO::Socket::SSL->new( |
138 Proto => 'tcp', | 138 Proto => 'tcp', |
139 PeerAddr => '127.0.0.1:' . port(8080), | 139 PeerAddr => '127.0.0.1:' . port(8080), |
140 SSL_hostname => $host, | 140 SSL_hostname => $host, |
141 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), | 141 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), |