# HG changeset patch # User Sergey Kandaurov # Date 1475834127 -10800 # Node ID 4a915c4489cc2213272daa61a585544dbbd89bb7 # Parent d56dfebf1aa004fc261654f54cf21c6daa94e42c Tests: increased default value for read timeout in HTTP/2 tests. This is supposed to improve the tests stability on slow or unresponsive hosts without negatively impacting execution time. diff --git a/lib/Test/Nginx/HTTP2.pm b/lib/Test/Nginx/HTTP2.pm --- a/lib/Test/Nginx/HTTP2.pm +++ b/lib/Test/Nginx/HTTP2.pm @@ -448,7 +448,7 @@ sub unpack_length { sub raw_read { my ($s, $buf, $len, $timo) = @_; - $timo = 3 unless $timo; + $timo = 5 unless $timo; my $got = ''; while (length($buf) < $len && IO::Select->new($s)->can_read($timo)) {