comparison stream_ssl_preread.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 b6d941ff65f4
children 4e48bf51714f
comparison
equal deleted inserted replaced
1406:6404fd77f367 1407:8c764fd93b5e
221 my $s = stream('127.0.0.1:' . port($port)); 221 my $s = stream('127.0.0.1:' . port($port));
222 222
223 eval { 223 eval {
224 local $SIG{ALRM} = sub { die "timeout\n" }; 224 local $SIG{ALRM} = sub { die "timeout\n" };
225 local $SIG{PIPE} = sub { die "sigpipe\n" }; 225 local $SIG{PIPE} = sub { die "sigpipe\n" };
226 alarm(2); 226 alarm(5);
227 IO::Socket::SSL->start_SSL($s->{_socket}, 227 IO::Socket::SSL->start_SSL($s->{_socket},
228 SSL_hostname => $host, 228 SSL_hostname => $host,
229 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), 229 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(),
230 SSL_error_trap => sub { die $_[1] } 230 SSL_error_trap => sub { die $_[1] }
231 ); 231 );