[nginx-tests] Tests: reduced ssl.t pipelining test time.
Maxim Dounin
mdounin at mdounin.ru
Wed Jul 23 18:55:12 UTC 2025
details: http://freenginx.org/hg/nginx-tests/rev/a93d11a64ed5
branches:
changeset: 2013:a93d11a64ed5
user: Maxim Dounin <mdounin at mdounin.ru>
date: Sat Jul 19 05:24:58 2025 +0300
description:
Tests: reduced ssl.t pipelining test time.
Doing 1000 pipelined requests might require significant time, as seen
on NetBSD with debugging enabled, and might cause occasional failures
on slow hosts. To mitigate, the test changed to do only 100 requests
instead.
diffstat:
ssl.t | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (28 lines):
diff --git a/ssl.t b/ssl.t
--- a/ssl.t
+++ b/ssl.t
@@ -250,17 +250,17 @@ like(get_body('/body', '0123456789', 20,
# pipelined requests
$s = get_ssl_socket(8085);
-my $req = <<EOF;
-GET / HTTP/1.1
-Host: localhost
-EOF
-
-$req x= 1000;
+my $req = (
+ "GET / HTTP/1.1" . CRLF .
+ "Host: localhost" . CRLF . CRLF ) x 99 .
+ "GET / HTTP/1.1" . CRLF .
+ "Host: localhost" . CRLF .
+ "Connection: close" . CRLF . CRLF;
my $r = http($req, socket => $s) || "";
$s = undef;
-is(() = $r =~ /(200 OK)/g, 1000, 'pipelined requests');
+is(() = $r =~ /(200 OK)/g, 100, 'pipelined requests');
# OpenSSL 3.0 error "unexpected eof while reading" seen as a critical error
More information about the nginx-devel
mailing list