summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/SslTransceiver.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2003-07-30 03:09:01 +0000
committerMichi Henning <michi@zeroc.com>2003-07-30 03:09:01 +0000
commit61924a00ce03e089df17fbecba1e11815bec32d9 (patch)
tree2f423907f83c50da173eeaa850ef31e056beacb2 /cpp/src/IceSSL/SslTransceiver.cpp
parentgcc fixes for Win32 changes (diff)
downloadice-61924a00ce03e089df17fbecba1e11815bec32d9.tar.bz2
ice-61924a00ce03e089df17fbecba1e11815bec32d9.tar.xz
ice-61924a00ce03e089df17fbecba1e11815bec32d9.zip
Updated receiving side for DatagramLimitException. Test is now done in
ThreadPool, as it should have been all along.
Diffstat (limited to 'cpp/src/IceSSL/SslTransceiver.cpp')
-rw-r--r--cpp/src/IceSSL/SslTransceiver.cpp29
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()