summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/SslServerTransceiver.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2005-06-14 17:00:21 +0000
committerMark Spruiell <mes@zeroc.com>2005-06-14 17:00:21 +0000
commit5344f3b20f8f0889c82b5fb124076f5894179437 (patch)
treef965fb6f7b70dbd96cac2cb637b4a578e936d3d7 /cpp/src/IceSSL/SslServerTransceiver.cpp
parentAdded application name to all the tests Made test executable unique names (diff)
downloadice-5344f3b20f8f0889c82b5fb124076f5894179437.tar.bz2
ice-5344f3b20f8f0889c82b5fb124076f5894179437.tar.xz
ice-5344f3b20f8f0889c82b5fb124076f5894179437.zip
fix for bug 332: IceSSL: is handshake retry loop necessary?
Diffstat (limited to 'cpp/src/IceSSL/SslServerTransceiver.cpp')
-rw-r--r--cpp/src/IceSSL/SslServerTransceiver.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/cpp/src/IceSSL/SslServerTransceiver.cpp b/cpp/src/IceSSL/SslServerTransceiver.cpp
index 4acbd506500..f34ba6744a8 100644
--- a/cpp/src/IceSSL/SslServerTransceiver.cpp
+++ b/cpp/src/IceSSL/SslServerTransceiver.cpp
@@ -175,8 +175,6 @@ IceSSL::SslServerTransceiver::handshake(int timeout)
while(!retCode)
{
- _readTimeout = timeout > _handshakeReadTimeout ? timeout : _handshakeReadTimeout;
-
if(_initWantWrite)
{
int i = writeSelect(timeout);
@@ -190,7 +188,7 @@ IceSSL::SslServerTransceiver::handshake(int timeout)
}
else
{
- int i = readSelect(_readTimeout);
+ int i = readSelect(timeout);
if(i == 0)
{
@@ -265,7 +263,7 @@ IceSSL::SslServerTransceiver::handshake(int timeout)
if(wouldBlock())
{
- readSelect(_readTimeout);
+ readSelect(timeout);
break;
}
@@ -363,8 +361,9 @@ IceSSL::SslServerTransceiver::showConnectionInfo()
IceSSL::SslServerTransceiver::SslServerTransceiver(const OpenSSLPluginIPtr& plugin,
SOCKET fd,
const IceSSL::CertificateVerifierPtr& certVerifier,
- SSL* sslConnection) :
- SslTransceiver(plugin, fd, certVerifier, sslConnection)
+ SSL* sslConnection,
+ int timeout) :
+ SslTransceiver(plugin, fd, certVerifier, sslConnection, timeout)
{
// Set the Accept Connection state for this connection.
SSL_set_accept_state(sslConnection);