]> git.kaiwu.me - nginx.git/commit
QUIC: switch stream to DATA_RECVD state.
authorRoman Arutyunyan <arut@nginx.com>
Thu, 3 Feb 2022 15:11:59 +0000 (18:11 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Thu, 3 Feb 2022 15:11:59 +0000 (18:11 +0300)
commite9c170635e7b35dd2a92ab72e57f38a3403e9566
tree10537b2f27db00df5defc3d826a2fa43357c2e03
parent1cc2be9616bd9117778d3576dcf3112eb93da4e3
QUIC: switch stream to DATA_RECVD state.

The switch happens when received byte counter reaches stream final size.
Previously, this state was skipped.  The stream went from SIZE_KNOWN to
DATA_READ when all bytes were read by application.

The change prevents STOP_SENDING frames from being sent when all data is
received from client, but not yet fully read by application.
src/event/quic/ngx_event_quic.h
src/event/quic/ngx_event_quic_streams.c