comparison stream_ssl_realip.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 e95133e85798
comparison
equal deleted inserted replaced
1420:ea593a9bab09 1421:4e48bf51714f
132 $s->write($proxy); 132 $s->write($proxy);
133 133
134 eval { 134 eval {
135 local $SIG{ALRM} = sub { die "timeout\n" }; 135 local $SIG{ALRM} = sub { die "timeout\n" };
136 local $SIG{PIPE} = sub { die "sigpipe\n" }; 136 local $SIG{PIPE} = sub { die "sigpipe\n" };
137 alarm(5); 137 alarm(8);
138 IO::Socket::SSL->start_SSL($s->{_socket}, 138 IO::Socket::SSL->start_SSL($s->{_socket},
139 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), 139 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(),
140 SSL_error_trap => sub { die $_[1] } 140 SSL_error_trap => sub { die $_[1] }
141 ); 141 );
142 alarm(0); 142 alarm(0);