]> granicus.if.org Git - pdns/commit
Protect dnsdist IDState and query ring with a RW lock
authorRemi Gacogne <rgacogne-github@coredump.fr>
Wed, 2 Dec 2015 10:43:37 +0000 (11:43 +0100)
committerRemi Gacogne <rgacogne-github@coredump.fr>
Wed, 2 Dec 2015 10:43:37 +0000 (11:43 +0100)
commit0e41337bff27ebd9813b04662d74672c4a160087
tree12a72bfc4dcd9c667d81be0523ba205c2bb84696
parentb64de5fa85c3c8e6a3214703f7f3a8275d5a20b2
Protect dnsdist IDState and query ring with a RW lock

The IDState issue is mainly origFD, modified by maintThread on timeout while used by the others.
upStatus and availability in DownstreamState are also causing complaints from helgrind / TSAN,
but I believe we can live with racy status and availability.
pdns/dnsdist-lua.cc
pdns/dnsdist-lua2.cc
pdns/dnsdist-tcp.cc
pdns/dnsdist.cc
pdns/dnsdist.hh
pdns/dnsdistdist/Makefile.am
pdns/dnsdistdist/lock.hh [new symlink]