changeset 1051:4a915c4489cc

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.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 07 Oct 2016 12:55:27 +0300
parents d56dfebf1aa0
children 7cf9b3e849d2
files lib/Test/Nginx/HTTP2.pm
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)) {