Skip to content

Commit e337f00

Browse files
committed
Tests: unbreak reading QUIC stream received not from the beginning.
Loss or reordering can cause STREAM frames that open streams to be received out of sequence.
1 parent 687cb50 commit e337f00

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Test/Nginx/HTTP3.pm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,6 +2100,9 @@ sub parse_stream {
21002100
my $stream = $self->{stream_in}[$i];
21012101
next if !defined $stream;
21022102

2103+
my $offset = $stream->{buf}[0][0];
2104+
next if $offset != 0;
2105+
21032106
my $buf = $stream->{buf}[0][2];
21042107

21052108
if ($stream->{buf}[0][3]) {

0 commit comments

Comments
 (0)