Skip to content

Commit 58ece96

Browse files
tests: retry slice cache warm-up during nginx startup
1 parent 20acb75 commit 58ece96

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎t/190-http2-slice-subreq-timeout.t‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@ system("dd", "if=/dev/urandom", "of=$file", "bs=1M", "count=2", "status=none") =
174174
or die "failed to create $file";
175175
176176
my $port = $Test::Nginx::Util::ServerPortForClient;
177+
# Valgrind starts nginx asynchronously and can delay the listener under load.
177178
my $cmd = "curl -sS --connect-timeout 5 --max-time 30 "
179+
. "--retry 30 --retry-connrefused --retry-delay 1 "
180+
. "--retry-max-time 30 "
178181
. "http://127.0.0.1:$port/slice.bin -o /dev/null";
179182
system($cmd) == 0 or die "failed to warm sliced proxy cache: $cmd";
180183

0 commit comments

Comments
 (0)