]> git.kaiwu.me - nginx.git/commit
QUIC: fixed removal of unused client IDs.
authorVladimir Homutov <vl@nginx.com>
Wed, 13 Oct 2021 11:48:33 +0000 (14:48 +0300)
committerVladimir Homutov <vl@nginx.com>
Wed, 13 Oct 2021 11:48:33 +0000 (14:48 +0300)
commit9ca3a02e684a3b5f19b6fec5b486d59eb4a4b319
tree443ad6bf1dc95ed79fc0f1a22f3209dd98886e6c
parent0572c2a69f4edef04e3babdb6f9ef18ff52a9619
QUIC: fixed removal of unused client IDs.

If client ID was never used, its refcount is zero.  To keep things simple,
the ngx_quic_unref_client_id() function is now aware of such IDs.

If client ID was used, the ngx_quic_replace_retired_client_id() function
is supposed to find all users and unref the ID, thus ngx_quic_unref_client_id()
should not be called after it.
src/event/quic/ngx_event_quic_connid.c