# HG changeset patch # User Sergey Kandaurov # Date 1571408271 -10800 # Node ID 5a55da6aed1301d6132bf78d1664e05ac52739d3 # Parent d8684b300d227279668a3a0dbf908906f1717e75 Tests: extended proxy_ssl.t for more ngx_ssl_recv_chain() cases. diff --git a/proxy_ssl.t b/proxy_ssl.t --- a/proxy_ssl.t +++ b/proxy_ssl.t @@ -25,7 +25,7 @@ eval { require IO::Socket::SSL; }; plan(skip_all => 'IO::Socket::SSL not installed') if $@; my $t = Test::Nginx->new()->has(qw/http proxy http_ssl/)->has_daemon('openssl') - ->plan(7)->write_file_expand('nginx.conf', <<'EOF'); + ->plan(8)->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%% @@ -85,6 +85,7 @@ distinguished_name = req_distinguished_n [ req_distinguished_name ] EOF +$t->write_file('big.html', 'xxxxxxxxxx' x 72000); $t->write_file('index.html', ''); my $d = $t->testdir(); @@ -120,6 +121,9 @@ like(http_get('/timeout'), qr/200 OK/, ' like(http_get('/timeout_h'), qr/504 Gateway/, 'proxy handshake timeout'); +is(length(Test::Nginx::http_content(http_get('/ssl/big.html'))), 720000, + 'big length'); + ############################################################################### sub http_daemon {