THRIFT-3061 eliminate potential for client to hang SSLSocket close
This closes #423
commit 5cb13f25ee6d292f2fde0051a2b7ee56b7884055
Author: Jim King <jim.king@simplivity.com>
Date: 2015-04-03T18:56:27Z
diff --git a/lib/cpp/src/thrift/transport/TSSLSocket.cpp b/lib/cpp/src/thrift/transport/TSSLSocket.cpp
index b9a8d8e..e33dd48 100644
--- a/lib/cpp/src/thrift/transport/TSSLSocket.cpp
+++ b/lib/cpp/src/thrift/transport/TSSLSocket.cpp
@@ -244,9 +244,6 @@
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;