comparison ssl_sni_sessions.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 f9718a0773b9
comparison
equal deleted inserted replaced
1420:ea593a9bab09 1421:4e48bf51714f
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(5); 180 alarm(8);
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,