Mercurial > hg > nginx-tests
comparison ssl_certificates.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 | 8c764fd93b5e |
children | dbce8fb5f5f8 |
comparison
equal
deleted
inserted
replaced
1420:ea593a9bab09 | 1421:4e48bf51714f |
---|---|
119 my $s; | 119 my $s; |
120 | 120 |
121 eval { | 121 eval { |
122 local $SIG{ALRM} = sub { die "timeout\n" }; | 122 local $SIG{ALRM} = sub { die "timeout\n" }; |
123 local $SIG{PIPE} = sub { die "sigpipe\n" }; | 123 local $SIG{PIPE} = sub { die "sigpipe\n" }; |
124 alarm(5); | 124 alarm(8); |
125 $s = IO::Socket::INET->new('127.0.0.1:' . port(8080)); | 125 $s = IO::Socket::INET->new('127.0.0.1:' . port(8080)); |
126 alarm(0); | 126 alarm(0); |
127 }; | 127 }; |
128 alarm(0); | 128 alarm(0); |
129 | 129 |