Mercurial > hg > nginx-tests
comparison h2_fastcgi_request_buffering.t @ 1421:4e48bf51714f
Tests: aligned various generic read timeouts to http_end().
It was observed that previous timeout values could not be enough when
making mass-building, in particular, when running with modsecurity.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 24 Dec 2018 14:24:51 +0300 |
parents | ea593a9bab09 |
children | 236d038dc04a |
comparison
equal
deleted
inserted
replaced
1420:ea593a9bab09 | 1421:4e48bf51714f |
---|---|
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 || 5)) { | 268 if (IO::Select->new($s)->can_read($timo || 8)) { |
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 } |