]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: Defer the NOD lookup until after the response has been sent 9243/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 25 May 2020 09:33:19 +0000 (11:33 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 16 Jun 2020 13:20:59 +0000 (15:20 +0200)
commita508b6a6e444a2a96fd6f8a5b485f1d635d0310c
tree82d74e7afa7963c09769a5bb7b61027be9675407
parentbb26e698048449e10374b4dc2cd517db1fd3bc49
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.

(cherry picked from commit 3bd27e4a01a3614aba3c0cf425e4ab9490318dd4)
pdns/pdns_recursor.cc