]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: Defer the NOD lookup until after the response has been sent 9142/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 25 May 2020 09:33:19 +0000 (11:33 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 25 May 2020 14:21:06 +0000 (16:21 +0200)
commit3bd27e4a01a3614aba3c0cf425e4ab9490318dd4
treed666fb7703775a40ac63a49ccddbdba3f3f9af27
parenta0289598b9517ba766f8e3a69357a91067bfc1c2
rec: Defer the NOD lookup until after the response has been sent

If the NOD lookup is slow, for example because the destination
authoritative server is down, doing the NOD lookup before the response
has been sent increases the latency a lot.
This commit moves the actual NOD lookup after the response has been
sent, so we can still use the existing mthread (we might actually need
to do a proper DNS resolution to find the target authoritative server)
without keeping the client waiting.
pdns/pdns_recursor.cc