Mercurial > hg > nginx-tests
comparison stream_ssl_preread_alpn.t @ 1407:8c764fd93b5e
Tests: adjusted client connect timeout in various tests with SSL.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 30 Nov 2018 12:55:31 +0300 |
parents | 97c8280de681 |
children | 4e48bf51714f |
comparison
equal
deleted
inserted
replaced
1406:6404fd77f367 | 1407:8c764fd93b5e |
---|---|
125 my $s = stream('127.0.0.1:' . port($port)); | 125 my $s = stream('127.0.0.1:' . port($port)); |
126 | 126 |
127 eval { | 127 eval { |
128 local $SIG{ALRM} = sub { die "timeout\n" }; | 128 local $SIG{ALRM} = sub { die "timeout\n" }; |
129 local $SIG{PIPE} = sub { die "sigpipe\n" }; | 129 local $SIG{PIPE} = sub { die "sigpipe\n" }; |
130 alarm(2); | 130 alarm(5); |
131 IO::Socket::SSL->start_SSL($s->{_socket}, | 131 IO::Socket::SSL->start_SSL($s->{_socket}, |
132 SSL_alpn_protocols => [ @alpn ], | 132 SSL_alpn_protocols => [ @alpn ], |
133 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), | 133 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), |
134 SSL_error_trap => sub { die $_[1] } | 134 SSL_error_trap => sub { die $_[1] } |
135 ); | 135 ); |