summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/Context.cpp
diff options
context:
space:
mode:
authorAnthony Neal <aneal@zeroc.com>2002-10-29 18:44:20 +0000
committerAnthony Neal <aneal@zeroc.com>2002-10-29 18:44:20 +0000
commit8597953fa6e03ab064f536ce7056628fb54b8674 (patch)
treec4c2129f39ca2cfa99f1f8335ee12f534f32fff4 /cpp/src/IceSSL/Context.cpp
parentMinor fixes. (diff)
downloadice-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.cpp9
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