Tests: added https test with pipelined requests.
diff --git a/ssl.t b/ssl.t
index d867a34..ac08c45 100644
--- a/ssl.t
+++ b/ssl.t
@@ -31,7 +31,7 @@
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 @@
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(get_body('/body', '0123456789', 20, 5), qr/X-Body: (0123456789){100}/,
'request body chunked');
+# pipelined requests
+
+$s = get_ssl_socket(8085);
+my $req = <<EOF;
+GET / HTTP/1.1
+Host: localhost
+
+EOF
+
+$req x= 1000;
+
+my $r = http($req, socket => $s) || "";
+is(() = $r =~ /(200 OK)/g, 1000, 'pipelined requests');
+
###############################################################################
sub get {