]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: release ref to key in MTasker::waitEvent
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 28 Oct 2024 13:45:07 +0000 (14:45 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 28 Oct 2024 15:44:08 +0000 (16:44 +0100)
commite0f508176fddd421fbbd52d4e4057d182653dbd6
treee820f7243489fd3e8e9c80c5bad09ac0aeef4202
parentdc2139af83a121d14ed4bc93313002a5fe65de92
rec: release ref to key in MTasker::waitEvent

If we do not do that, only the next call of sendEvent will release
the shared pointer to the TCPConnectionHanlder in PacketID. This
might delay cleaning TCP objects up on not-so-busy threads.

Fixes #13422, thought it can still take a while on idle recursors,
as the housekeeping function is not called often in those cases.
pdns/recursordist/mtasker.hh