You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by su...@apache.org on 2015/07/08 05:06:22 UTC

trafficserver git commit: [TS-3714]: Suppress the unnecessary call to SSL_pending.

Repository: trafficserver
Updated Branches:
  refs/heads/master f98ad39f5 -> 17ca6e33c


[TS-3714]: Suppress the unnecessary call to SSL_pending.


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

Branch: refs/heads/master
Commit: 17ca6e33c36544c85699ca964da5e03a6880a38f
Parents: f98ad39
Author: Sudheer Vinukonda <su...@yahoo-inc.com>
Authored: Wed Jul 8 03:05:48 2015 +0000
Committer: Sudheer Vinukonda <su...@yahoo-inc.com>
Committed: Wed Jul 8 03:05:48 2015 +0000

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


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/17ca6e33/iocore/net/SSLNetVConnection.cc
----------------------------------------------------------------------
diff --git a/iocore/net/SSLNetVConnection.cc b/iocore/net/SSLNetVConnection.cc
index 1f965fe..2524bbb 100644
--- a/iocore/net/SSLNetVConnection.cc
+++ b/iocore/net/SSLNetVConnection.cc
@@ -501,10 +501,12 @@ SSLNetVConnection::net_read_io(NetHandler *nh, EThread *lthread)
             if (ret == SSL_READ_EOS) {
               this->eosRcvd = true;
             }
+#if DEBUG
             int pending = SSL_pending(this->ssl);
             if (r > 0 || pending > 0) {
               Debug("ssl", "ssl read right after handshake, read %" PRId64 ", pending %d bytes, for vc %p", r, pending, this);
             }
+#endif
           } else {
             Error("failed to allocate MIOBuffer after handshake, vc %p", this);
           }