comparison h2_proxy_request_buffering.t @ 1420:ea593a9bab09

Tests: adjusted read timeout in HTTP/2 request buffering tests.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 19 Dec 2018 12:51:18 +0300
parents 6ca8b38f63b6
children 4e48bf51714f
comparison
equal deleted inserted replaced
1419:16a8962ff246 1420:ea593a9bab09
263 263
264 sub backend_read { 264 sub backend_read {
265 my ($s, $timo) = @_; 265 my ($s, $timo) = @_;
266 my $buf = ''; 266 my $buf = '';
267 267
268 if (IO::Select->new($s)->can_read($timo || 3)) { 268 if (IO::Select->new($s)->can_read($timo || 5)) {
269 $s->sysread($buf, 16384) or return; 269 $s->sysread($buf, 16384) or return;
270 log2i($buf); 270 log2i($buf);
271 } 271 }
272 return $buf; 272 return $buf;
273 } 273 }