]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
More debugs for PeerConnector
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 24 Dec 2016 03:21:11 +0000 (16:21 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 24 Dec 2016 03:21:11 +0000 (16:21 +1300)
src/security/PeerConnector.cc

index 3f5a256d6169b02b4857cd745ed68b1196fc696e..948912c398ed8b34fd3ac020e402f331b7bd77c7 100644 (file)
@@ -437,6 +437,7 @@ void
 Security::PeerConnector::noteWantRead()
 {
     const int fd = serverConnection()->fd;
+    debugs(83, 5, "FD " << fd);
 #if USE_OPENSSL
     Security::SessionPointer session(fd_table[fd].ssl);
     BIO *b = SSL_get_rbio(session.get());
@@ -467,6 +468,7 @@ void
 Security::PeerConnector::noteWantWrite()
 {
     const int fd = serverConnection()->fd;
+    debugs(83, 5, "FD " << fd);
     Comm::SetSelect(fd, COMM_SELECT_WRITE, &NegotiateSsl, this, 0);
     return;
 }
@@ -485,11 +487,12 @@ Security::PeerConnector::noteNegotiationError(const int ret, const int ssl_error
     if (ssl_error == SSL_ERROR_SYSCALL && ret == -1 && ssl_lib_error == 0)
         sysErrNo = errno;
 #endif
+    int xerr = errno;
 
     const int fd = serverConnection()->fd;
     debugs(83, DBG_IMPORTANT, "ERROR: negotiating TLS on FD " << fd <<
            ": " << Security::ErrorString(ssl_lib_error) << " (" <<
-           ssl_error << "/" << ret << "/" << errno << ")");
+           ssl_error << "/" << ret << "/" << xerr << ")");
 
     ErrorState *anErr = NULL;
     if (request != NULL)