Mercurial > hg > nginx-tests
comparison ssl_sni_sessions.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 | 97c8280de681 |
children | 4e48bf51714f |
comparison
equal
deleted
inserted
replaced
1406:6404fd77f367 | 1407:8c764fd93b5e |
---|---|
175 my $s; | 175 my $s; |
176 | 176 |
177 eval { | 177 eval { |
178 local $SIG{ALRM} = sub { die "timeout\n" }; | 178 local $SIG{ALRM} = sub { die "timeout\n" }; |
179 local $SIG{PIPE} = sub { die "sigpipe\n" }; | 179 local $SIG{PIPE} = sub { die "sigpipe\n" }; |
180 alarm(2); | 180 alarm(5); |
181 $s = IO::Socket::SSL->new( | 181 $s = IO::Socket::SSL->new( |
182 Proto => 'tcp', | 182 Proto => 'tcp', |
183 PeerAddr => '127.0.0.1', | 183 PeerAddr => '127.0.0.1', |
184 PeerPort => $port, | 184 PeerPort => $port, |
185 SSL_hostname => $host, | 185 SSL_hostname => $host, |