]> git.kaiwu.me - nginx.git/commit
QUIC: improved size calculation in ngx_quic_write_chain().
authorRoman Arutyunyan <arut@nginx.com>
Thu, 3 Feb 2022 18:29:05 +0000 (21:29 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Thu, 3 Feb 2022 18:29:05 +0000 (21:29 +0300)
commit1cc2be9616bd9117778d3576dcf3112eb93da4e3
treeb6841c7a0bcb11b67c5c7f9c44f1d25c2067251d
parent8a61c89a276ae5626ff84f6dd1e9da218754a313
QUIC: improved size calculation in ngx_quic_write_chain().

Previously, size was calculated based on the number of input bytes processed
by the function.  Now only the copied bytes are considered.  This prevents
overlapping buffers from contributing twice to the overall written size.
src/event/quic/ngx_event_quic_frames.c