]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Better reporting of syscall errors via OpenSSL's libssl
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 3 Apr 2019 15:30:52 +0000 (17:30 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 4 Apr 2019 09:54:06 +0000 (11:54 +0200)
pdns/dnsdistdist/tcpiohandler.cc

index 9d44f0dba7c9169f76840dc46fe6a8a9ba86ee1f..4b4fc5919413263b471427c2237e947e6b8722c3 100644 (file)
@@ -258,6 +258,9 @@ public:
     else if (error == SSL_ERROR_WANT_WRITE) {
       return IOState::NeedWrite;
     }
+    else if (error == SSL_ERROR_SYSCALL) {
+      throw std::runtime_error("Error while processing TLS connection:" + std::string(strerror(errno)));
+    }
     else {
       throw std::runtime_error("Error while processing TLS connection:" + std::to_string(error));
     }