]> 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:30 +0000 (16:51 +0100)
commit39adb3822a203427b991166156b6c941018c2e4d
tree78f3162b0b8f534745a7cfa0b5aeb92ca2b3b14c
parentc99add29a9b1c9d42036904f23dfc8ec8d87c0ac
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