Mercurial > hg > nginx-tests
comparison lib/Test/Nginx/HTTP2.pm @ 1406:6404fd77f367
Tests: adjusted connect timeout in HTTP/2 tests.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 29 Nov 2018 19:18:20 +0300 |
parents | d6382e557fc0 |
children | 4e48bf51714f |
comparison
equal
deleted
inserted
replaced
1405:104701299b91 | 1406:6404fd77f367 |
---|---|
499 $port ||= port(8080); | 499 $port ||= port(8080); |
500 | 500 |
501 eval { | 501 eval { |
502 local $SIG{ALRM} = sub { die "timeout\n" }; | 502 local $SIG{ALRM} = sub { die "timeout\n" }; |
503 local $SIG{PIPE} = sub { die "sigpipe\n" }; | 503 local $SIG{PIPE} = sub { die "sigpipe\n" }; |
504 alarm(2); | 504 alarm(5); |
505 $s = IO::Socket::INET->new( | 505 $s = IO::Socket::INET->new( |
506 Proto => 'tcp', | 506 Proto => 'tcp', |
507 PeerAddr => "127.0.0.1:$port", | 507 PeerAddr => "127.0.0.1:$port", |
508 ); | 508 ); |
509 require IO::Socket::SSL if $extra{'SSL'}; | 509 require IO::Socket::SSL if $extra{'SSL'}; |