trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject trafficserver git commit: TS-4253: Better debug messages in ssl_read_from_net()
Date Mon, 07 Mar 2016 18:37:07 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 6991aecd9 -> 0faf94c13


TS-4253: Better debug messages in ssl_read_from_net()

This closes #518


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/0faf94c1
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/0faf94c1
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/0faf94c1

Branch: refs/heads/master
Commit: 0faf94c13c1221acf11e88adbed5edd8429d2dc1
Parents: 6991aec
Author: Bryan Call <bcall@apache.org>
Authored: Mon Mar 7 10:36:51 2016 -0800
Committer: Bryan Call <bcall@apache.org>
Committed: Mon Mar 7 10:36:51 2016 -0800

----------------------------------------------------------------------
 iocore/net/SSLNetVConnection.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/0faf94c1/iocore/net/SSLNetVConnection.cc
----------------------------------------------------------------------
diff --git a/iocore/net/SSLNetVConnection.cc b/iocore/net/SSLNetVConnection.cc
index dc48c63..bb81687 100644
--- a/iocore/net/SSLNetVConnection.cc
+++ b/iocore/net/SSLNetVConnection.cc
@@ -275,7 +275,7 @@ ssl_read_from_net(SSLNetVConnection *sslvc, EThread *lthread, int64_t
&ret)
         } else {
           // then EOF observed, treat it as EOS
           event = SSL_READ_EOS;
-          // Error("[SSL_NetVConnection::ssl_read_from_net] SSL_ERROR_SYSCALL, EOF observed
violating SSL protocol");
+          Debug("ssl.error", "[SSL_NetVConnection::ssl_read_from_net] SSL_ERROR_SYSCALL,
EOF observed violating SSL protocol");
           TraceIn(trace, sslvc->get_remote_addr(), sslvc->get_remote_port(), "EOF observed
violating SSL protocol");
         }
         break;
@@ -287,6 +287,7 @@ ssl_read_from_net(SSLNetVConnection *sslvc, EThread *lthread, int64_t
&ret)
         break;
       case SSL_ERROR_SSL:
       default: {
+        Debug("ssl.error", "[SSL_NetVConnection::ssl_read_from_net] SSL_ERROR_SSL and default
case");
         char buf[512];
         unsigned long e = ERR_peek_last_error();
         ERR_error_string_n(e, buf, sizeof(buf));


Mime
View raw message