Mercurial > hg > nginx-tests
diff lib/Test/Nginx/HTTP2.pm @ 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 | 6404fd77f367 |
children | 5b3d33b5556c |
line wrap: on
line diff
--- a/lib/Test/Nginx/HTTP2.pm +++ b/lib/Test/Nginx/HTTP2.pm @@ -465,7 +465,7 @@ sub unpack_length { sub raw_read { my ($s, $buf, $len, $timo) = @_; - $timo = 5 unless $timo; + $timo = 8 unless $timo; my $got = ''; while (length($buf) < $len && IO::Select->new($s)->can_read($timo)) { @@ -501,7 +501,7 @@ sub new_socket { eval { local $SIG{ALRM} = sub { die "timeout\n" }; local $SIG{PIPE} = sub { die "sigpipe\n" }; - alarm(5); + alarm(8); $s = IO::Socket::INET->new( Proto => 'tcp', PeerAddr => "127.0.0.1:$port",