Mercurial > hg > nginx-tests
comparison h2_proxy_request_buffering_ssl.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 |
---|---|
268 | 268 |
269 sub backend_read { | 269 sub backend_read { |
270 my ($s, $timo) = @_; | 270 my ($s, $timo) = @_; |
271 my $buf = ''; | 271 my $buf = ''; |
272 | 272 |
273 if (IO::Select->new($s)->can_read($timo || 3)) { | 273 if (IO::Select->new($s)->can_read($timo || 5)) { |
274 $s->sysread($buf, 16384) or return; | 274 $s->sysread($buf, 16384) or return; |
275 log2i($buf); | 275 log2i($buf); |
276 } | 276 } |
277 return $buf; | 277 return $buf; |
278 } | 278 } |