comparison ssl_sni_reneg.t @ 1173:1a54d45d5587

Tests: handled SIGPIPE in ssl_sni_reneg.t.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 04 May 2017 19:05:41 +0300
parents 8ef51dbb5d69
children 0af58b78df35
comparison
equal deleted inserted replaced
1172:7e81d47faa07 1173:1a54d45d5587
93 ok($s, 'connection'); 93 ok($s, 'connection');
94 94
95 SKIP: { 95 SKIP: {
96 skip 'connection failed', 3 unless $s; 96 skip 'connection failed', 3 unless $s;
97 97
98 local $SIG{PIPE} = 'IGNORE';
99
98 Net::SSLeay::write($ssl, 'GET / HTTP/1.0' . CRLF); 100 Net::SSLeay::write($ssl, 'GET / HTTP/1.0' . CRLF);
99 101
100 ok(Net::SSLeay::renegotiate($ssl), 'renegotiation'); 102 ok(Net::SSLeay::renegotiate($ssl), 'renegotiation');
101 ok(Net::SSLeay::set_tlsext_host_name($ssl, 'localhost'), 'SNI'); 103 ok(Net::SSLeay::set_tlsext_host_name($ssl, 'localhost'), 'SNI');
102 104