From: Christian Hofstaedtler Date: Mon, 26 Jun 2017 13:55:47 +0000 (+0200) Subject: auth/rec ws: sync caught serveConnection exceptions X-Git-Tag: rec-4.1.0-alpha1~36^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d7bd1008adcd320679732c39b3d4943c76f5b60;p=thirdparty%2Fpdns.git auth/rec ws: sync caught serveConnection exceptions --- diff --git a/pdns/ws-recursor.cc b/pdns/ws-recursor.cc index e45d65e6bb..32b4657b50 100644 --- a/pdns/ws-recursor.cc +++ b/pdns/ws-recursor.cc @@ -560,9 +560,9 @@ void AsyncServer::newConnection() getMT()->makeThread(&AsyncServerNewConnectionMT, this); } - +// This is an entry point from FDM, so it needs to catch everything. void AsyncWebServer::serveConnection(Socket *client) -{ +try { HttpRequest req; YaHTTP::AsyncRequestLoader yarl; yarl.initialize(&req); @@ -595,6 +595,16 @@ void AsyncWebServer::serveConnection(Socket *client) L<