]> git.kaiwu.me - nginx.git/commit
QUIC: fixed insertion at the end of buffer.
authorRoman Arutyunyan <arut@nginx.com>
Thu, 17 Feb 2022 19:38:42 +0000 (22:38 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Thu, 17 Feb 2022 19:38:42 +0000 (22:38 +0300)
commitc24c27bb074b571fc9e9d75e19be31b83c69c253
tree8e53c741d79bf65af955072adf21cf5fd617f796
parent2526632f7172d46d54dbf9738b497d91b9543f50
QUIC: fixed insertion at the end of buffer.

Previously, last buffer was tracked by keeping a pointer to the previous
chain link "next" field.  When the previous buffer was split and then removed,
the pointer was no longer valid.  Writing at this pointer resulted in broken
data chains.

Now last buffer is tracked by keeping a direct pointer to it.
src/event/quic/ngx_event_quic.h
src/event/quic/ngx_event_quic_frames.c