Repository: trafficserver
Updated Branches:
  refs/heads/master 12bde5b9c -> eb6a6e063


TS-2815: update to check the state of the connection before rescheduling the
write


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

Branch: refs/heads/master
Commit: eb6a6e0631afef7e9ea5e39ea388b7886cdc1e76
Parents: 12bde5b
Author: Bryan Call <[email protected]>
Authored: Fri May 23 14:16:02 2014 -0700
Committer: Bryan Call <[email protected]>
Committed: Fri May 23 14:16:02 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/eb6a6e06/iocore/net/SSLNetVConnection.cc
----------------------------------------------------------------------
diff --git a/iocore/net/SSLNetVConnection.cc b/iocore/net/SSLNetVConnection.cc
index 11e9d1e..bef9c4b 100644
--- a/iocore/net/SSLNetVConnection.cc
+++ b/iocore/net/SSLNetVConnection.cc
@@ -656,8 +656,7 @@ SSLNetVConnection::sslClientHandShakeEvent(int &err)
 
       Debug("ssl", "SSL client handshake completed successfully");
       // if the handshake is complete and write is enabled reschedule the write
-      Debug("ssl", "write.enabled: %d", write.enabled);
-      if (write.enabled)
+      if (closed == 0 && write.enabled)
         writeReschedule(nh);
       if (cert) {
         debug_certificate_name("server certificate subject CN is", 
X509_get_subject_name(cert));

Reply via email to