# HG changeset patch # User Sergey Kandaurov # Date 1582903233 -10800 # Node ID 3b6b2667ece918aa48422ea51ab81b7a74403e5d # Parent 27237569776f59b088198d70aaa9bd093c5b9014 Tests: added https test with pipelined requests. diff --git a/ssl.t b/ssl.t --- a/ssl.t +++ b/ssl.t @@ -31,7 +31,7 @@ eval { IO::Socket::SSL::SSL_VERIFY_NONE( plan(skip_all => 'IO::Socket::SSL too old') if $@; my $t = Test::Nginx->new()->has(qw/http http_ssl rewrite proxy/) - ->has_daemon('openssl')->plan(23); + ->has_daemon('openssl')->plan(24); $t->write_file_expand('nginx.conf', <<'EOF'); @@ -59,6 +59,8 @@ http { ssl_session_cache shared:SSL:1m; ssl_verify_client optional_no_ca; + keepalive_requests 1000; + location / { return 200 "body $ssl_session_reused"; } @@ -282,6 +284,20 @@ like(cert('/time', 8085), qr/^body [:\s\ like(get_body('/body', '0123456789', 20, 5), qr/X-Body: (0123456789){100}/, 'request body chunked'); +# pipelined requests + +$s = get_ssl_socket(8085); +my $req = < $s) || ""; +is(() = $r =~ /(200 OK)/g, 1000, 'pipelined requests'); + ############################################################################### sub get {