diff lib/Test/Nginx/HTTP3.pm @ 1883:ff50c265a5ac

Tests: HTTP/3 tests with streams blocked on insert count. As QUIC streams are run postponed, make sure to give it a chance to run before receiving RESET_STREAM, such that the request is read.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 13 Jan 2023 17:12:21 +0400
parents f50c2a65ccc0
children 6f1508d53a26
line wrap: on
line diff
--- a/lib/Test/Nginx/HTTP3.pm
+++ b/lib/Test/Nginx/HTTP3.pm
@@ -419,7 +419,7 @@ sub new_stream {
 	# encoded field section prefix
 
 	my $table = $self->{dynamic_encode};
-	my $ric = scalar @$table ? scalar @$table + 1 : 0;
+	my $ric = $uri->{ric} ? $uri->{ric} : @$table ? @$table + 1 : 0;
 	my $base = $uri->{base} || 0;
 	$base = $base < 0 ? 0x80 + abs($base) - 1 : $base;
 	$input = pack("CC", $ric, $base) . $input;