diff options
author | Mark Spruiell <mes@zeroc.com> | 2005-06-14 17:00:21 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2005-06-14 17:00:21 +0000 |
commit | 5344f3b20f8f0889c82b5fb124076f5894179437 (patch) | |
tree | f965fb6f7b70dbd96cac2cb637b4a578e936d3d7 /cpp/src/IceSSL/SslClientTransceiver.cpp | |
parent | Added application name to all the tests Made test executable unique names (diff) | |
download | ice-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/SslClientTransceiver.cpp')
-rw-r--r-- | cpp/src/IceSSL/SslClientTransceiver.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/cpp/src/IceSSL/SslClientTransceiver.cpp b/cpp/src/IceSSL/SslClientTransceiver.cpp index e287c16d70b..f10eb44bcba 100644 --- a/cpp/src/IceSSL/SslClientTransceiver.cpp +++ b/cpp/src/IceSSL/SslClientTransceiver.cpp @@ -188,11 +188,9 @@ IceSSL::SslClientTransceiver::handshake(int timeout) while(!retCode) { - _readTimeout = timeout > _handshakeReadTimeout ? timeout : _handshakeReadTimeout; - if(_initWantRead) { - int i = readSelect(_readTimeout); + int i = readSelect(timeout); if(i == 0) { @@ -262,7 +260,7 @@ IceSSL::SslClientTransceiver::handshake(int timeout) if(wouldBlock()) { - readSelect(_readTimeout); + readSelect(timeout); break; } @@ -395,8 +393,9 @@ IceSSL::SslClientTransceiver::showConnectionInfo() IceSSL::SslClientTransceiver::SslClientTransceiver(const OpenSSLPluginIPtr& plugin, SOCKET fd, const CertificateVerifierPtr& certVerifier, - SSL* sslConnection) : - SslTransceiver(plugin, fd, certVerifier, sslConnection) + SSL* sslConnection, + int timeout) : + SslTransceiver(plugin, fd, certVerifier, sslConnection, timeout) { // Set the Connect Connection state for this connection. SSL_set_connect_state(_sslConnection); |