]> granicus.if.org Git - pdns/commitdiff
silence timeout error from webserver
authorbert hubert <bert.hubert@netherlabs.nl>
Tue, 16 Dec 2014 11:52:22 +0000 (12:52 +0100)
committermind04 <mind04@monshouwer.org>
Mon, 22 Dec 2014 22:33:40 +0000 (23:33 +0100)
pdns/webserver.cc

index cf993a1e48b29d29cb9e6a0d76e35a0556301144..22eba06cf5d76888673fb04f451bc53e82466ac4 100644 (file)
@@ -300,7 +300,8 @@ catch(PDNSException &e) {
   L<<Logger::Error<<"HTTP Exception: "<<e.reason<<endl;
 }
 catch(std::exception &e) {
-  L<<Logger::Error<<"HTTP STL Exception: "<<e.what()<<endl;
+  if(strstr(e.what(), "timeout")==0)
+    L<<Logger::Error<<"HTTP STL Exception: "<<e.what()<<endl;
 }
 catch(...) {
   L<<Logger::Error<<"HTTP: Unknown exception"<<endl;