diff options
author | Anthony Neal <aneal@zeroc.com> | 2002-10-29 18:44:20 +0000 |
---|---|---|
committer | Anthony Neal <aneal@zeroc.com> | 2002-10-29 18:44:20 +0000 |
commit | 8597953fa6e03ab064f536ce7056628fb54b8674 (patch) | |
tree | c4c2129f39ca2cfa99f1f8335ee12f534f32fff4 /cpp/src/IceSSL/Context.cpp | |
parent | Minor fixes. (diff) | |
download | ice-8597953fa6e03ab064f536ce7056628fb54b8674.tar.bz2 ice-8597953fa6e03ab064f536ce7056628fb54b8674.tar.xz ice-8597953fa6e03ab064f536ce7056628fb54b8674.zip |
Implemented connect-time handshaking.
Diffstat (limited to 'cpp/src/IceSSL/Context.cpp')
-rw-r--r-- | cpp/src/IceSSL/Context.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cpp/src/IceSSL/Context.cpp b/cpp/src/IceSSL/Context.cpp index 0d8da2ba191..611af358085 100644 --- a/cpp/src/IceSSL/Context.cpp +++ b/cpp/src/IceSSL/Context.cpp @@ -610,12 +610,13 @@ IceSSL::Context::createSSLConnection(int socket) } void -IceSSL::Context::transceiverSetup(const SslTransceiverPtr& transceiver) +IceSSL::Context::transceiverSetup(const SslTransceiverPtr& transceiver, int timeout) { - // Set the Post-Handshake Read timeout // This timeout is implemented once on the first read after hanshake. - int handshakeReadTimeout = _properties->getPropertyAsIntWithDefault(_handshakeTimeoutProperty, 5000); - transceiver->setHandshakeReadTimeout(handshakeReadTimeout); + transceiver->setHandshakeReadTimeout(timeout < 5000 ? 5000 : timeout); + + int retries = _properties->getPropertyAsIntWithDefault(_connectionHandshakeRetries, 10); + transceiver->setHandshakeRetries(retries); } void |