comparison 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
comparison
equal deleted inserted replaced
1882:3619dcc8ba6d 1883:ff50c265a5ac
417 } 417 }
418 418
419 # encoded field section prefix 419 # encoded field section prefix
420 420
421 my $table = $self->{dynamic_encode}; 421 my $table = $self->{dynamic_encode};
422 my $ric = scalar @$table ? scalar @$table + 1 : 0; 422 my $ric = $uri->{ric} ? $uri->{ric} : @$table ? @$table + 1 : 0;
423 my $base = $uri->{base} || 0; 423 my $base = $uri->{base} || 0;
424 $base = $base < 0 ? 0x80 + abs($base) - 1 : $base; 424 $base = $base < 0 ? 0x80 + abs($base) - 1 : $base;
425 $input = pack("CC", $ric, $base) . $input; 425 $input = pack("CC", $ric, $base) . $input;
426 426
427 # set length, attach headers, body 427 # set length, attach headers, body