]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Report the error when the GnuTLS handshake failed
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 8 Feb 2021 15:25:31 +0000 (16:25 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 2 Mar 2021 09:48:56 +0000 (10:48 +0100)
pdns/tcpiohandler.cc

index 6c57485d8ddbe273111ad6299a7e070b4fca837b..76a18e5611bbd06c7234dc506e1fd280b6f2776a 100644 (file)
@@ -839,7 +839,7 @@ public:
         return IOState::NeedRead;
       }
       else if (gnutls_error_is_fatal(ret) || ret == GNUTLS_E_WARNING_ALERT_RECEIVED) {
-        throw std::runtime_error("Error accepting a new connection");
+        throw std::runtime_error("Error accepting a new connection: " + std::string(gnutls_strerror(ret)));
       }
     } while (ret == GNUTLS_E_INTERRUPTED);