]> granicus.if.org Git - pdns/commit
dnsdist: Fix the oustanding counter when an exception is raised
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 14 Dec 2017 11:28:34 +0000 (12:28 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 14 Dec 2017 11:28:34 +0000 (12:28 +0100)
commitdf560083763da68488f09ed385c479c10eedf750
treef1519ff48a893ad242d2d5b87cf9fd7a7c308758
parent36934d2c61867e660e5c2520773a86ae1c68789b
dnsdist: Fix the oustanding counter when an exception is raised

If an exception is raised in the responder thread after the outstanding
queries counter has been decremented, but before we could mark the
state as processed, the same state would be processed again and the
counter decremented a second time, either because of a duplicate
answer or more likely by the timeout handler.
This commit simply increase back the outstanding counter when such
an exception occurs.
pdns/dnsdist.cc