Mercurial > hg > nginx-tests
changeset 1958:70302d2090ad
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sat, 27 Apr 2024 18:55:08 +0300 |
parents | c544b7120a6d |
children | 9877dce42a59 |
files | lib/Test/Nginx/HTTP3.pm |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)); }