]> 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>
Tue, 13 Feb 2018 13:58:52 +0000 (14:58 +0100)
commit8ae7f5082ac86f9b1d0257866b93e98aef278bc6
treeec2c779f54dcb77119b45d4c48fd02be7c4085d0
parent7b8c947ee7adc34ac512cebd066fb2bebf146647
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.

(cherry picked from commit df560083763da68488f09ed385c479c10eedf750)
pdns/dnsdist.cc