]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
catch AhuException during inbound AXFR
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Fri, 7 Dec 2012 09:41:08 +0000 (09:41 +0000)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Fri, 7 Dec 2012 09:41:08 +0000 (09:41 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2976 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/slavecommunicator.cc

index e4637c1f6afbfaf07a78c6c1fab62d3feb1bd7d2..b754076000d6d65364c10ad826fe1d9b8f31c335 100644 (file)
@@ -392,6 +392,13 @@ void CommunicatorClass::suck(const string &domain,const string &remote)
       di.backend->abortTransaction();
     }
   }
+  catch(AhuException &ae) {
+    L<<Logger::Error<<"Unable to AXFR zone '"+domain+"' from remote '"<<remote<<"' (AhuException): "<<ae.reason<<endl;
+    if(di.backend && !first) {
+      L<<Logger::Error<<"Aborting possible open transaction for domain '"<<domain<<"' AXFR"<<endl;
+      di.backend->abortTransaction();
+    }
+  }
 }
 namespace {
 struct QueryInfo