]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
daemon: more avoidance of excessive TCP reconnections
authorOto Šťáva <oto.stava@nic.cz>
Tue, 1 Aug 2023 14:36:53 +0000 (16:36 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 22 Aug 2023 11:38:27 +0000 (13:38 +0200)
commit7aec8ebdf1428afcb7f5bc62764149ffeaf3d3fe
tree95183cf8c0654c6c4fafcd1299d4b661471d00f8
parent5bebc074f6c0ed174aa7fc2efe5f328e6da1a513
daemon: more avoidance of excessive TCP reconnections

Previously this penalization was only triggered if the remote server
closed TCP.  Now it's extended to us closing it when the server
(only) sends back some nonsense.  At least for the cases which I could
see immediately.

That's just three trivial one-line additions; the rest is refactoring.

Adapted to 6.0 from commit 6468ab22 by Oto Šťáva <oto.stava@nic.cz>

Co-Authored-By: Vladimír Čunat <vladimir.cunat@nic.cz>
daemon/io.c
daemon/session2.c
daemon/session2.h
daemon/worker.c