# HG changeset patch # User Maxim Dounin # Date 1714233308 -10800 # Node ID 70302d2090ad01522ee66f9f94bec54be11c8779 # Parent c544b7120a6d0780d45a60cbfd4bc0bf82ecb015 Tests: fixed HTTP/3 stream offset adjustment when sending body. Previously, size of the body without the DATA frame header was used, resulting in incorrect offset being used in further QUIC frames, making it impossible to send the request body in multiple DATA frames. diff -r c544b7120a6d -r 70302d2090ad lib/Test/Nginx/HTTP3.pm --- a/lib/Test/Nginx/HTTP3.pm Sat Apr 20 20:58:42 2024 +0300 +++ b/lib/Test/Nginx/HTTP3.pm Sat Apr 27 18:55:08 2024 +0300 @@ -470,7 +470,7 @@ my $buf = pack_body($self, $body) if defined $body; my $offset = $self->{streams}{$sid}{sent}; - $self->{streams}{$sid}{sent} += length($body); + $self->{streams}{$sid}{sent} += length($buf); $self->raw_write($self->build_stream($buf, start => $extra->{body_more}, sid => $sid, offset => $offset)); }