]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
lib/selection: improve IPv6 avoidance if broken
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 24 May 2022 07:02:53 +0000 (09:02 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 9 Jun 2022 07:16:49 +0000 (09:16 +0200)
commit83efd209c01256461b072f7cada28689b03feabc
treecacd31ade5da4655674370677e2ea8c5235a241b
parentc0542b17368e28a1faa3a8e3011e5562bef80259
lib/selection: improve IPv6 avoidance if broken

It was still possible to get into a deadlock here.
https://forum.turris.cz/t/not-connecting-to-applications-like-discord/17111/7
If A records for a NS fell out of cache but AAAA remained,
with probability 1-\epsilon we'd choose an AAAA address
even if IPv6 was considered broken.

I looked at *the whole* no6 strategy again, and I do think that
there are no such holes anymore.  A few percent attempts will still
go over IPv6 even if it's considered broken, but that sounds OK-ish.
NEWS
lib/selection.c