Mercurial > hg > nginx-tests
comparison ssl_password_file.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 |
---|---|
145 my $s; | 145 my $s; |
146 | 146 |
147 eval { | 147 eval { |
148 local $SIG{ALRM} = sub { die "timeout\n" }; | 148 local $SIG{ALRM} = sub { die "timeout\n" }; |
149 local $SIG{PIPE} = sub { die "sigpipe\n" }; | 149 local $SIG{PIPE} = sub { die "sigpipe\n" }; |
150 alarm(2); | 150 alarm(5); |
151 $s = IO::Socket::SSL->new( | 151 $s = IO::Socket::SSL->new( |
152 Proto => 'tcp', | 152 Proto => 'tcp', |
153 PeerAddr => '127.0.0.1:' . port(8081), | 153 PeerAddr => '127.0.0.1:' . port(8081), |
154 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), | 154 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), |
155 SSL_error_trap => sub { die $_[1] } | 155 SSL_error_trap => sub { die $_[1] } |