Mercurial > hg > nginx-tests
comparison stream_ssl_preread.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 |
---|---|
221 my $s = stream('127.0.0.1:' . port($port)); | 221 my $s = stream('127.0.0.1:' . port($port)); |
222 | 222 |
223 eval { | 223 eval { |
224 local $SIG{ALRM} = sub { die "timeout\n" }; | 224 local $SIG{ALRM} = sub { die "timeout\n" }; |
225 local $SIG{PIPE} = sub { die "sigpipe\n" }; | 225 local $SIG{PIPE} = sub { die "sigpipe\n" }; |
226 alarm(5); | 226 alarm(8); |
227 IO::Socket::SSL->start_SSL($s->{_socket}, | 227 IO::Socket::SSL->start_SSL($s->{_socket}, |
228 SSL_hostname => $host, | 228 SSL_hostname => $host, |
229 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), | 229 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), |
230 SSL_error_trap => sub { die $_[1] } | 230 SSL_error_trap => sub { die $_[1] } |
231 ); | 231 ); |