comparison lib/Test/Nginx/Stream.pm @ 1423:29d0961bc3f7

Tests: aligned generic read timeouts in stream and mail tests.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 25 Dec 2018 13:56:49 +0300
parents 3fc6817cd84a
children 5d3aee48ed8e
comparison
equal deleted inserted replaced
1422:2d7fcd713b66 1423:29d0961bc3f7
82 my ($s, $buf); 82 my ($s, $buf);
83 83
84 $s = $self->{_socket}; 84 $s = $self->{_socket};
85 85
86 $s->blocking(0); 86 $s->blocking(0);
87 if (IO::Select->new($s)->can_read($extra{read_timeout} || 5)) { 87 if (IO::Select->new($s)->can_read($extra{read_timeout} || 8)) {
88 $s->sysread($buf, 1024); 88 $s->sysread($buf, 1024);
89 }; 89 };
90 90
91 log_in($buf); 91 log_in($buf);
92 return $buf; 92 return $buf;