diff options
Diffstat (limited to 'cpp/src/IceSSL/SslTransceiver.cpp')
-rw-r--r-- | cpp/src/IceSSL/SslTransceiver.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/cpp/src/IceSSL/SslTransceiver.cpp b/cpp/src/IceSSL/SslTransceiver.cpp index f7c9e8260ac..10e85d223d4 100644 --- a/cpp/src/IceSSL/SslTransceiver.cpp +++ b/cpp/src/IceSSL/SslTransceiver.cpp @@ -68,7 +68,7 @@ IceSSL::SslTransceiver::close() int retries = -numRetries; do { - shutdown = internalShutdown(); + shutdown = internalShutdownWrite(0); retries++; } while((shutdown == 0) && (retries < 0)); @@ -105,7 +105,7 @@ IceSSL::SslTransceiver::shutdownWrite() int retries = -numRetries; do { - shutdown = internalShutdown(); + shutdown = internalShutdownWrite(0); retries++; } while((shutdown == 0) && (retries < 0)); @@ -123,15 +123,17 @@ IceSSL::SslTransceiver::shutdownReadWrite() out << "shutting down ssl connection for reading and writing\n" << toString(); } +/* int shutdown = 0; int numRetries = 100; int retries = -numRetries; do { - shutdown = internalShutdown(); + shutdown = internalShutdownWrite(0); retries++; } while((shutdown == 0) && (retries < 0)); +*/ assert(_fd != INVALID_SOCKET); shutdownSocketReadWrite(_fd); @@ -481,7 +483,7 @@ IceSSL::SslTransceiver::verifyCertificate(int preVerifyOkay, X509_STORE_CTX* x50 // int -IceSSL::SslTransceiver::internalShutdown(int timeout) +IceSSL::SslTransceiver::internalShutdownWrite(int timeout) { if(_sslConnection == 0) { @@ -704,7 +706,7 @@ IceSSL::SslTransceiver::initialize(int timeout) case Shutdown : { - retCode = internalShutdown(timeout); + retCode = internalShutdownWrite(timeout); break; } |