]> git.kaiwu.me - nginx.git/commit
HTTP/2: optimized queuing of DATA frames
authorSergey Kandaurov <pluknet@nginx.com>
Fri, 25 Sep 2026 14:16:36 +0000 (14:16 +0000)
committerSergey Kandaurov <pluknet@nginx.com>
Wed, 4 Nov 2026 18:09:10 +0000 (22:09 +0400)
commit61031503dc8087c2c17cd2142c9b4b19062f90c4
tree4443a7fd240e3c4b292619ffc2d9e3baef3e6fd4
parent050076e2b4a5cd7cb701a97b6b85c51b99382910
HTTP/2: optimized queuing of DATA frames

With priorities from RFC 9218, streams of the same urgency are ordered
by their identifiers, so queuing a frame of an older stream traverses
the frames of all newer ones.

Frames queued in ngx_http_v2_send_chain() belong to a single stream, and
hence to a single position in the output queue, which does not change
while they are queued.  Now the position is searched once per call.
src/http/v2/ngx_http_v2.h
src/http/v2/ngx_http_v2_filter_module.c