]> granicus.if.org Git - pdns/commit
dnsdist: Do not share the packet cache entries between TCP and UDP
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 19 Feb 2016 11:58:05 +0000 (12:58 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 19 Feb 2016 11:58:05 +0000 (12:58 +0100)
commita176d205922081b97ed404c6615ef43e807202e3
tree2e8e05a62c03d12a1c8f4d57b5e17352a614e6c5
parentd49f69e31fd74821b44aca6f2532fea6264aa409
dnsdist: Do not share the packet cache entries between TCP and UDP

It would obviously cause issues, for example with truncated
responses. It is possible to disable the cache for all TCP queries
by using something like:

addAction(TCPRule(true), SkipCacheAction())
pdns/dnsdist-cache.cc
pdns/dnsdist-cache.hh
pdns/dnsdist-tcp.cc
pdns/dnsdist.cc
pdns/test-dnsdistpacketcache_cc.cc
regression-tests.dnsdist/test_Advanced.py