Mercurial > hg > nginx-tests
comparison proxy_upgrade.t @ 1155:d37983612b04
Tests: adjusted read timeout in proxy upgrade tests for slow hosts.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 28 Mar 2017 17:57:49 +0300 |
parents | 882267679006 |
children | a79bf84726af |
comparison
equal
deleted
inserted
replaced
1154:2c120aea4362 | 1155:d37983612b04 |
---|---|
201 $h->{b} = $2; | 201 $h->{b} = $2; |
202 return $1; | 202 return $1; |
203 } | 203 } |
204 | 204 |
205 $s->blocking(0); | 205 $s->blocking(0); |
206 while (IO::Select->new($s)->can_read(1.5)) { | 206 while (IO::Select->new($s)->can_read(3)) { |
207 my $n = $s->sysread($buf, 1024); | 207 my $n = $s->sysread($buf, 1024); |
208 last unless $n; | 208 last unless $n; |
209 | 209 |
210 $h->{b} .= $buf; | 210 $h->{b} .= $buf; |
211 $h->{r} += $n; | 211 $h->{r} += $n; |