summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ContextOpenSSL.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-04-17 18:18:56 +0000
committerMarc Laukien <marc@zeroc.com>2002-04-17 18:18:56 +0000
commitba3284190a5c6d7ded9645f00e965c5162393a5b (patch)
tree9d036f1baef585b57bad59e17de5516d9f9882b0 /cpp/src/Ice/ContextOpenSSL.cpp
parentgetPropertyAsInt (diff)
downloadice-ba3284190a5c6d7ded9645f00e965c5162393a5b.tar.bz2
ice-ba3284190a5c6d7ded9645f00e965c5162393a5b.tar.xz
ice-ba3284190a5c6d7ded9645f00e965c5162393a5b.zip
property convenience operations
Diffstat (limited to 'cpp/src/Ice/ContextOpenSSL.cpp')
-rw-r--r--cpp/src/Ice/ContextOpenSSL.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/cpp/src/Ice/ContextOpenSSL.cpp b/cpp/src/Ice/ContextOpenSSL.cpp
index b0cc0e2f543..e0885f456b3 100644
--- a/cpp/src/Ice/ContextOpenSSL.cpp
+++ b/cpp/src/Ice/ContextOpenSSL.cpp
@@ -565,18 +565,7 @@ IceSSL::OpenSSL::Context::connectionSetup(const ConnectionPtr& connection)
{
// Set the Post-Handshake Read timeout
// This timeout is implemented once on the first read after hanshake.
- int handshakeReadTimeout;
- std::string value = _properties->getProperty(_handshakeTimeoutProperty);
-
- if (!value.empty())
- {
- handshakeReadTimeout = atoi(value.c_str());
- }
- else
- {
- handshakeReadTimeout = 5000;
- }
-
+ int handshakeReadTimeout = _properties->getPropertyAsIntWithDefault(_handshakeTimeoutProperty, 5000);
connection->setHandshakeReadTimeout(handshakeReadTimeout);
}