comparison ssl_proxy_protocol.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
154 my $s = http($proxy, start => 1); 154 my $s = http($proxy, start => 1);
155 155
156 eval { 156 eval {
157 local $SIG{ALRM} = sub { die "timeout\n" }; 157 local $SIG{ALRM} = sub { die "timeout\n" };
158 local $SIG{PIPE} = sub { die "sigpipe\n" }; 158 local $SIG{PIPE} = sub { die "sigpipe\n" };
159 alarm(2); 159 alarm(5);
160 IO::Socket::SSL->start_SSL($s, 160 IO::Socket::SSL->start_SSL($s,
161 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), 161 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(),
162 SSL_error_trap => sub { die $_[1] } 162 SSL_error_trap => sub { die $_[1] }
163 ); 163 );
164 alarm(0); 164 alarm(0);