]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
lib/resolve: track rtt of all tried servers
authorMarek Vavrusa <marek@vavrusa.com>
Wed, 24 Aug 2016 00:28:47 +0000 (17:28 -0700)
committerMarek Vavrusa <marek@vavrusa.com>
Wed, 24 Aug 2016 00:28:47 +0000 (17:28 -0700)
commitd5f3f4e230bfadd7ca95f047332b4e97508f77cc
tree9cdc9d7ef83bb5bdeac33d94b9a8d4d440659055
parent5b293e2273765d5c8d4342dc74a816607ad3b406
lib/resolve: track rtt of all tried servers

when doing fast retransmit, each address may be
contacted 1-N times, but previously only cumulative
RTT was tracked for the NS that sent the answer.

now the approximate query start time is subtracted
from cumulative RTT to give an idea how long it
took since the query was actually sent, and all
the NSs that didn't respond within their retransmit
windows are penalised too
daemon/worker.h
lib/nsrep.c
lib/nsrep.h
lib/resolve.c