From 5cb13f25ee6d292f2fde0051a2b7ee56b7884055 Mon Sep 17 00:00:00 2001 From: Jim King Date: Fri, 3 Apr 2015 14:56:27 -0400 Subject: [PATCH] [THRIFT-3061] eliminate potential for client to hang SSLSocket close --- lib/cpp/src/thrift/transport/TSSLSocket.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/cpp/src/thrift/transport/TSSLSocket.cpp b/lib/cpp/src/thrift/transport/TSSLSocket.cpp index b9a8d8e96a5..e33dd4839b0 100644 --- a/lib/cpp/src/thrift/transport/TSSLSocket.cpp +++ b/lib/cpp/src/thrift/transport/TSSLSocket.cpp @@ -244,9 +244,6 @@ void TSSLSocket::open() { void TSSLSocket::close() { if (ssl_ != NULL) { int rc = SSL_shutdown(ssl_); - if (rc == 0) { - rc = SSL_shutdown(ssl_); - } if (rc < 0) { int errno_copy = THRIFT_GET_SOCKET_ERROR; string errors;