You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by sh...@apache.org on 2015/01/09 20:39:06 UTC
trafficserver git commit: TS-3272: Another fix for the preaccept
callback.
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 <sh...@yahoo-inc.com>
Authored: Fri Jan 9 09:47:43 2015 -0600
Committer: shinrich <sh...@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;
}