comparison ssl.t @ 1421:4e48bf51714f

Tests: aligned various generic read timeouts to http_end(). It was observed that previous timeout values could not be enough when making mass-building, in particular, when running with modsecurity.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 24 Dec 2018 14:24:51 +0300
parents 8c764fd93b5e
children e1c64ee44212
comparison
equal deleted inserted replaced
1420:ea593a9bab09 1421:4e48bf51714f
298 my $s; 298 my $s;
299 299
300 eval { 300 eval {
301 local $SIG{ALRM} = sub { die "timeout\n" }; 301 local $SIG{ALRM} = sub { die "timeout\n" };
302 local $SIG{PIPE} = sub { die "sigpipe\n" }; 302 local $SIG{PIPE} = sub { die "sigpipe\n" };
303 alarm(5); 303 alarm(8);
304 $s = IO::Socket::SSL->new( 304 $s = IO::Socket::SSL->new(
305 Proto => 'tcp', 305 Proto => 'tcp',
306 PeerAddr => '127.0.0.1', 306 PeerAddr => '127.0.0.1',
307 PeerPort => $port, 307 PeerPort => $port,
308 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), 308 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(),