]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
daemon/worker send_waiting(): be more defensive
authorVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 24 Apr 2025 08:10:44 +0000 (10:10 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 24 Apr 2025 08:49:52 +0000 (10:49 +0200)
commit7210f16e65e3ed8794ace2ee1f57e4eac6c1a38f
tree8a6625e11896f64a40552d44d769c516f2077feb
parent11a9dc4ed43188ce1889298cfd0615c6ecadf2f9
daemon/worker send_waiting(): be more defensive

We encountered non-recoverable assertions due to popping
from an empty queue here, but I see no reason to block recovery here.
I'm still keeping it as a soft assertion until it's better understood.

I *suspect* what happened is that:
 - multiple queries queued up before outgoing TCP handshake completed
 - the session got into closing state for some reason
   *before* processing this whole queue
 - during that the queue got emptied
NEWS
daemon/worker.c