]> git.ipfire.org Git - thirdparty/pdns.git/commit - regression-tests.dnsdist/test_TCPKeepAlive.py
dnsdist: Keep the TCP connection open on cache hit, generated answers 6012/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 28 Nov 2017 10:02:09 +0000 (11:02 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 28 Nov 2017 10:18:45 +0000 (11:18 +0100)
commitdcacff179cc046fa40982bfe22eca36e1b39b665
tree986a7a1342ac9d9156a711349c9aeadb63ae9f5b
parent4784f8997af4f2928858fed889151899cc19e49c
dnsdist: Keep the TCP connection open on cache hit, generated answers

We used to close the TCP connection right away on cases where that did
not make sense:
- on a cache hit
- on a self-generated answer
- on a servfail answer caused by the lack of usable downstream servers

We still close the TCP connections on drops, dynamic blocks, lack of
usable downstream servers without `setServFailWhenNoServer()` set,
invalid queries, network errors..
pdns/dnsdist-tcp.cc
regression-tests.dnsdist/test_TCPKeepAlive.py [new file with mode: 0644]