]> git.kaiwu.me - nginx.git/commit
QUIC: fixed binary upgrade from older versions
authorIvan Ovchinnikov <i.ovchinnikov@f5.com>
Tue, 29 Sep 2026 21:09:54 +0000 (21:09 +0000)
committerIvan Ovchinnikov <33402471+route443@users.noreply.github.com>
Tue, 29 Sep 2026 21:39:10 +0000 (14:39 -0700)
commitb862596041377b4f8da8ebddec86fb2d5760a435
tree89368d46ca5e67f835adaaa646e16e5fd27ce6e1
parent63af971a1ec5c6d5aac8660184c389e4a02633f0
QUIC: fixed binary upgrade from older versions

Before 63af971a1 (1.31.7), the NGINX_BPF_MAPS environment variable
was passed to the new binary on binary upgrade whenever the quic_bpf
module was built, even if "quic_bpf" was not enabled, with an empty
value if there were no QUIC BPF socket groups.

Since 63af971a1, such an empty value was treated as inherited maps,
and the new binary refused to start: with the "cannot be disabled
during binary upgrade" error if "quic_bpf" was not enabled, or with
a parsing error otherwise.

The fix is to ignore an empty value, which means there are no maps
to inherit.
src/event/quic/ngx_event_quic_bpf.c