]> granicus.if.org Git - pdns/commit
Handle exceptions raised by `closesocket()`
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 5 Dec 2016 15:42:55 +0000 (16:42 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 16 Feb 2017 15:51:53 +0000 (16:51 +0100)
commit5a38a566f9bbe3b6ae9e6620d09d673bf7a03210
treed324d1bca5eb3bb3071667876467f04a7099f296
parenta2bee67b6e60ca448c38216b553c8f7242232b7e
Handle exceptions raised by `closesocket()`

This was not very well handled, and could cause the PowerDNS process
to terminate. This is especially nasty when `closesocket()` is called
from a destructor, as we could already be dealing with an exception.

(cherry picked from commit a7b68ae7e414ec9f3184df70ac8008f8a310ae60)
pdns/dnsproxy.cc
pdns/pdns_recursor.cc
pdns/resolver.cc
pdns/rfc2136handler.cc
pdns/sstuff.hh
pdns/tcpreceiver.cc
pdns/utility.hh