diff stream_upstream_hash.t @ 711:824754da4afc

Tests: adjusted socket read timeout in stream tests. Read timeout was increased to prevent situation when data is delayed with more than 3 seconds. In this case, part of the response could be cut off.
author Andrey Zelenkov <zelenkov@nginx.com>
date Wed, 23 Sep 2015 18:29:34 +0300
parents 5c3946ebd867
children 77359b849cd5
line wrap: on
line diff
--- a/stream_upstream_hash.t
+++ b/stream_upstream_hash.t
@@ -138,7 +138,7 @@ sub stream_read {
 	my ($buf);
 
 	$s->blocking(0);
-	if (IO::Select->new($s)->can_read(3)) {
+	if (IO::Select->new($s)->can_read(5)) {
 		$s->sysread($buf, 1024);
 	};