Mercurial > hg > nginx-tests
comparison ssl_stapling.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 | e8ba4ae5e3ac |
comparison
equal
deleted
inserted
replaced
1420:ea593a9bab09 | 1421:4e48bf51714f |
---|---|
292 my $s; | 292 my $s; |
293 | 293 |
294 eval { | 294 eval { |
295 local $SIG{ALRM} = sub { die "timeout\n" }; | 295 local $SIG{ALRM} = sub { die "timeout\n" }; |
296 local $SIG{PIPE} = sub { die "sigpipe\n" }; | 296 local $SIG{PIPE} = sub { die "sigpipe\n" }; |
297 alarm(5); | 297 alarm(8); |
298 $s = IO::Socket::INET->new('127.0.0.1:' . port($port)); | 298 $s = IO::Socket::INET->new('127.0.0.1:' . port($port)); |
299 alarm(0); | 299 alarm(0); |
300 }; | 300 }; |
301 alarm(0); | 301 alarm(0); |
302 | 302 |
333 my $s; | 333 my $s; |
334 | 334 |
335 eval { | 335 eval { |
336 local $SIG{ALRM} = sub { die "timeout\n" }; | 336 local $SIG{ALRM} = sub { die "timeout\n" }; |
337 local $SIG{PIPE} = sub { die "sigpipe\n" }; | 337 local $SIG{PIPE} = sub { die "sigpipe\n" }; |
338 alarm(5); | 338 alarm(8); |
339 $s = IO::Socket::INET->new('127.0.0.1:' . port(8443)); | 339 $s = IO::Socket::INET->new('127.0.0.1:' . port(8443)); |
340 alarm(0); | 340 alarm(0); |
341 }; | 341 }; |
342 alarm(0); | 342 alarm(0); |
343 | 343 |