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 <[email protected]> Authored: Fri Jan 9 09:47:43 2015 -0600 Committer: shinrich <[email protected]> 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; }
