Mercurial > hg > nginx-tests
changeset 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 | aed139eaaf3f |
children | 649af6069976 |
files | stream_access.t stream_limit_rate.t stream_proxy.t stream_proxy_protocol.t stream_proxy_protocol_ipv6.t stream_tcp_nodelay.t stream_upstream.t stream_upstream_hash.t stream_upstream_least_conn.t |
diffstat | 9 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/stream_access.t +++ b/stream_access.t @@ -243,7 +243,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); };
--- a/stream_limit_rate.t +++ b/stream_limit_rate.t @@ -182,7 +182,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); };
--- a/stream_proxy.t +++ b/stream_proxy.t @@ -99,7 +99,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); };
--- a/stream_proxy_protocol.t +++ b/stream_proxy_protocol.t @@ -116,7 +116,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); };
--- a/stream_proxy_protocol_ipv6.t +++ b/stream_proxy_protocol_ipv6.t @@ -119,7 +119,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); };
--- a/stream_tcp_nodelay.t +++ b/stream_tcp_nodelay.t @@ -117,7 +117,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); };
--- a/stream_upstream.t +++ b/stream_upstream.t @@ -161,7 +161,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); };