diff options
Diffstat (limited to 'cpp/src/IceSSL/SslTransceiver.cpp')
-rw-r--r-- | cpp/src/IceSSL/SslTransceiver.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/cpp/src/IceSSL/SslTransceiver.cpp b/cpp/src/IceSSL/SslTransceiver.cpp index 93fdfda5ec0..164c642aec6 100644 --- a/cpp/src/IceSSL/SslTransceiver.cpp +++ b/cpp/src/IceSSL/SslTransceiver.cpp @@ -276,17 +276,6 @@ IceSSL::SslTransceiver::toString() const return _desc; } -int -IceSSL::SslTransceiver::maxRecvSize() const -{ - return _messageSizeMax; -} - -int -IceSSL::SslTransceiver::maxSendSize() const -{ - return _messageSizeMax; -} void IceSSL::SslTransceiver::forceHandshake() { @@ -1033,24 +1022,6 @@ IceSSL::SslTransceiver::SslTransceiver(const OpenSSLPluginIPtr& plugin, // fdToString may raise a socket exception. // const_cast<string&>(_desc) = fdToString(_fd); - - // - // Initialize max message size. - // - static const int defaultMessageSizeMax = 1024; - Int num = plugin->getProperties()->getPropertyAsIntWithDefault("Ice.MessageSizeMax", defaultMessageSizeMax); - if(num < 1) - { - _messageSizeMax = defaultMessageSizeMax; // Ignore stupid values. - } - else if(static_cast<size_t>(num) > (size_t)(0x7fffffff / 1024)) - { - _messageSizeMax = static_cast<size_t>(0x7fffffff); - } - else - { - _messageSizeMax = static_cast<size_t>(num) * 1024; // Property is in kilobytes, _messageSizeMax in bytes. - } } IceSSL::SslTransceiver::~SslTransceiver() |