trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shinr...@apache.org
Subject trafficserver git commit: TS-3272: Another fix for the preaccept callback.
Date Fri, 09 Jan 2015 19:39:06 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 61aa4b477 -> 5862f45ba


TS-3272: Another fix for the preaccept callback.


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

Branch: refs/heads/master
Commit: 5862f45ba323095ede6ba43555500e8415f0c2b6
Parents: 61aa4b4
Author: shinrich <shinrich@yahoo-inc.com>
Authored: Fri Jan 9 09:47:43 2015 -0600
Committer: shinrich <shinrich@yahoo-inc.com>
Committed: Fri Jan 9 13:38:38 2015 -0600

----------------------------------------------------------------------
 iocore/net/SSLNetVConnection.cc | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/5862f45b/iocore/net/SSLNetVConnection.cc
----------------------------------------------------------------------
diff --git a/iocore/net/SSLNetVConnection.cc b/iocore/net/SSLNetVConnection.cc
index 74c5e2f..638cf94 100644
--- a/iocore/net/SSLNetVConnection.cc
+++ b/iocore/net/SSLNetVConnection.cc
@@ -461,9 +461,11 @@ SSLNetVConnection::net_read_io(NetHandler *nh, EThread *lthread)
           // Clean up the handshake buffers
           this->free_handshake_buffers();
 
-          // Kick things again, so the data that was copied into the
-          // vio.read buffer gets processed
-          this->readSignalDone(VC_EVENT_READ_COMPLETE, nh);
+          if (r > 0) {
+            // Kick things again, so the data that was copied into the
+            // vio.read buffer gets processed
+            this->readSignalDone(VC_EVENT_READ_COMPLETE, nh);
+          }
         }
         return;
       }


Mime
View raw message