Mercurial > hg > nginx-tests
comparison ssl_sni.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 | eeababfd8726 |
comparison
equal
deleted
inserted
replaced
1420:ea593a9bab09 | 1421:4e48bf51714f |
---|---|
131 my $s; | 131 my $s; |
132 | 132 |
133 eval { | 133 eval { |
134 local $SIG{ALRM} = sub { die "timeout\n" }; | 134 local $SIG{ALRM} = sub { die "timeout\n" }; |
135 local $SIG{PIPE} = sub { die "sigpipe\n" }; | 135 local $SIG{PIPE} = sub { die "sigpipe\n" }; |
136 alarm(5); | 136 alarm(8); |
137 $s = IO::Socket::SSL->new( | 137 $s = IO::Socket::SSL->new( |
138 Proto => 'tcp', | 138 Proto => 'tcp', |
139 PeerAddr => '127.0.0.1:' . port(8080), | 139 PeerAddr => '127.0.0.1:' . port(8080), |
140 SSL_hostname => $host, | 140 SSL_hostname => $host, |
141 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), | 141 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), |