summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/SslConnectionOpenSSL.cpp
diff options
context:
space:
mode:
authorAnthony Neal <aneal@zeroc.com>2001-11-27 17:14:13 +0000
committerAnthony Neal <aneal@zeroc.com>2001-11-27 17:14:13 +0000
commit78832bffe031d22985d4f1b7ff10aa034f2efb1a (patch)
treebdb7f25514c264a6751ad063d982613845b6b534 /cpp/src/Ice/SslConnectionOpenSSL.cpp
parentstream fixes (diff)
downloadice-78832bffe031d22985d4f1b7ff10aa034f2efb1a.tar.bz2
ice-78832bffe031d22985d4f1b7ff10aa034f2efb1a.tar.xz
ice-78832bffe031d22985d4f1b7ff10aa034f2efb1a.zip
Fixed SSL_ZERO_RETURN handling in read() and write() methods.
Diffstat (limited to 'cpp/src/Ice/SslConnectionOpenSSL.cpp')
-rw-r--r--cpp/src/Ice/SslConnectionOpenSSL.cpp19
1 files changed, 3 insertions, 16 deletions
diff --git a/cpp/src/Ice/SslConnectionOpenSSL.cpp b/cpp/src/Ice/SslConnectionOpenSSL.cpp
index 8e55d10742f..a8f937710b7 100644
--- a/cpp/src/Ice/SslConnectionOpenSSL.cpp
+++ b/cpp/src/Ice/SslConnectionOpenSSL.cpp
@@ -540,22 +540,9 @@ IceSecurity::Ssl::OpenSSL::Connection::readSSL(Buffer& buf, int timeout)
case SSL_ERROR_ZERO_RETURN:
{
- // string errorString = "SSL_ERROR_ZERO_RETURN";
- // ICE_EXCEPTION(errorString);
- // throw ShutdownException(errorString.c_str(), __FILE__, __LINE__);
-
- if (connectionLost())
- {
- ConnectionLostException ex(__FILE__, __LINE__);
- ex.error = getSocketErrno();
- throw ex;
- }
- else
- {
- SocketException ex(__FILE__, __LINE__);
- ex.error = getSocketErrno();
- throw ex;
- }
+ ConnectionLostException ex(__FILE__, __LINE__);
+ ex.error = getSocketErrno();
+ throw ex;
}
}
}