comparison stream_ssl_preread.t @ 1202:cbda704b3093

Tests: fixed stream_ssl_preread.t when run in parallel.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 03 Aug 2017 17:29:54 +0300
parents 08f6eacf1cfe
children f373a718f646
comparison
equal deleted inserted replaced
1201:76640144791b 1202:cbda704b3093
208 http($r); 208 http($r);
209 } 209 }
210 210
211 sub get_ssl { 211 sub get_ssl {
212 my ($host, $port) = @_; 212 my ($host, $port) = @_;
213 my $s = stream("127.0.0.1:$port"); 213 my $s = stream('127.0.0.1:' . port($port));
214 214
215 eval { 215 eval {
216 local $SIG{ALRM} = sub { die "timeout\n" }; 216 local $SIG{ALRM} = sub { die "timeout\n" };
217 local $SIG{PIPE} = sub { die "sigpipe\n" }; 217 local $SIG{PIPE} = sub { die "sigpipe\n" };
218 alarm(2); 218 alarm(2);