summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/SslTransceiver.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2004-10-26 23:36:21 +0000
committerMarc Laukien <marc@zeroc.com>2004-10-26 23:36:21 +0000
commit6205402933f97de744773e669151efdcedf82c2b (patch)
treec0ede132c0dd55a3030166f31fc22346a0e96606 /cpp/src/IceSSL/SslTransceiver.cpp
parentmore HP-UX notes (diff)
downloadice-6205402933f97de744773e669151efdcedf82c2b.tar.bz2
ice-6205402933f97de744773e669151efdcedf82c2b.tar.xz
ice-6205402933f97de744773e669151efdcedf82c2b.zip
more fixes for thread per connection
Diffstat (limited to 'cpp/src/IceSSL/SslTransceiver.cpp')
-rw-r--r--cpp/src/IceSSL/SslTransceiver.cpp12
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;
}