summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/SslConnectionOpenSSLClient.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/SslConnectionOpenSSLClient.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/SslConnectionOpenSSLClient.cpp')
-rw-r--r--cpp/src/Ice/SslConnectionOpenSSLClient.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/cpp/src/Ice/SslConnectionOpenSSLClient.cpp b/cpp/src/Ice/SslConnectionOpenSSLClient.cpp
index c5ee61236c8..209f9725c7a 100644
--- a/cpp/src/Ice/SslConnectionOpenSSLClient.cpp
+++ b/cpp/src/Ice/SslConnectionOpenSSLClient.cpp
@@ -423,18 +423,9 @@ IceSecurity::Ssl::OpenSSL::ClientConnection::write(Buffer& buf, int timeout)
{
ICE_EXCEPTION("SSL_ERROR_ZERO_RETURN");
- 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;
}
}
}