Skip to content

Commit

Permalink
THRIFT-3061 eliminate potential for client to hang SSLSocket close
Browse files Browse the repository at this point in the history
This closes apache#423

commit 5cb13f2
Author: Jim King <jim.king@simplivity.com>
Date: 2015-04-03T18:56:27Z
  • Loading branch information
bufferoverflow committed Apr 12, 2015
1 parent 47fc2cd commit ede17c5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/cpp/src/thrift/transport/TSSLSocket.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit ede17c5

Please sign in to comment.