From: Remi Gacogne Date: Thu, 21 Jan 2016 10:19:55 +0000 (+0100) Subject: dnsdist: Lock the response ring in exceedRespGen() X-Git-Tag: dnsdist-1.0.0-alpha2~42^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d9f965083158f9fb854024d7fa464171ed4e074;p=pdns dnsdist: Lock the response ring in exceedRespGen() Hopefully this should fix #3277. --- diff --git a/pdns/dnsdist-lua2.cc b/pdns/dnsdist-lua2.cc index 0172032cc..3c2c06f0d 100644 --- a/pdns/dnsdist-lua2.cc +++ b/pdns/dnsdist-lua2.cc @@ -61,7 +61,8 @@ map exceedRespGen(int rate, int seconds, std::function lock(g_rings.respMutex); for(const auto& c : g_rings.respRing) { if(seconds && c.when < cutoff) continue;