]> git.kaiwu.me - nginx.git/commit
QUIC: fixed chain returned from ngx_quic_write_chain().
authorRoman Arutyunyan <arut@nginx.com>
Tue, 25 Jan 2022 06:45:50 +0000 (09:45 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Tue, 25 Jan 2022 06:45:50 +0000 (09:45 +0300)
commitc40382267432d741d9ef24aecdec55d1768ae448
tree7b2ec747d20e526750e6b6e29eb6fa5e28fa159d
parenta0aa287d13ef8d9b6916d3b52e9bfa2aa30871fe
QUIC: fixed chain returned from ngx_quic_write_chain().

Previously, when input ended on a QUIC buffer boundary, input chain was not
advanced to the next buffer.  As a result, ngx_quic_write_chain() returned
a chain with an empty buffer instead of NULL.  This broke HTTP write filter,
preventing it from closing the HTTP request and eventually timing out.

Now input chain is always advanced to a buffer that has data, before checking
QUIC buffer boundary condition.
src/event/quic/ngx_event_quic_frames.c