]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Add an optional `seconds` parameter to `statNodeRespRing()` 4780/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 16 Dec 2016 15:51:12 +0000 (16:51 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 13 Jan 2017 14:43:10 +0000 (15:43 +0100)
commit26b86deb9d41bc820eff3101aca5fc11e5df94de
tree6a2e9ee906ff4ce3b5d0853b0cb3b61db74382e6
parent5c3d953f065d54e5bd4df0e1b63afc45b5c2eedd
dnsdist: Add an optional `seconds` parameter to `statNodeRespRing()`

By default `statNodeRespRing()` applies the visitor function to every
entry in the response rings. When passed a non-zero `seconds` parameter,
it will only apply it to entries added in the last `seconds` seconds.
pdns/dnsdist-lua2.cc
regression-tests.dnsdist/test_Advanced.py