Mercurial > hg > nginx-tests
diff stream_proxy_ssl.t @ 1197:155573499f20
Tests: more ssl session tests.
Check that SSL session can be resumed if it was retrieved
from within or after the abbreviated handshake.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 20 Jul 2017 14:47:59 +0300 |
parents | af7feabed82a |
children | 0af58b78df35 |
line wrap: on
line diff
--- a/stream_proxy_ssl.t +++ b/stream_proxy_ssl.t @@ -25,7 +25,7 @@ select STDOUT; $| = 1; my $t = Test::Nginx->new()->has(qw/stream stream_ssl http http_ssl/) ->has(qw/stream_return/) - ->has_daemon('openssl')->plan(5); + ->has_daemon('openssl')->plan(6); $t->write_file_expand('nginx.conf', <<'EOF'); @@ -110,6 +110,7 @@ is(stream('127.0.0.1:' . port(8081))->re is(stream('127.0.0.1:' . port(8082))->read(), '.', 'ssl session new'); is(stream('127.0.0.1:' . port(8082))->read(), 'r', 'ssl session reused'); +is(stream('127.0.0.1:' . port(8082))->read(), 'r', 'ssl session reused 2'); my $s = http('', start => 1);