summaryrefslogtreecommitdiff
path: root/cppe/src/TcpTransport/Transceiver.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2005-07-06 14:17:32 +0000
committerDwayne Boone <dwayne@zeroc.com>2005-07-06 14:17:32 +0000
commitb36c3c3d0d2a4958cb0f0d4f4f367ebb79ebcce4 (patch)
tree6a38bbffd87baa42cbcc175d3c38375db6aa805b /cppe/src/TcpTransport/Transceiver.cpp
parentRenamed IceE namespace back to Ice (diff)
downloadice-b36c3c3d0d2a4958cb0f0d4f4f367ebb79ebcce4.tar.bz2
ice-b36c3c3d0d2a4958cb0f0d4f4f367ebb79ebcce4.tar.xz
ice-b36c3c3d0d2a4958cb0f0d4f4f367ebb79ebcce4.zip
Benoit's change wrt packet size
Diffstat (limited to 'cppe/src/TcpTransport/Transceiver.cpp')
-rw-r--r--cppe/src/TcpTransport/Transceiver.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/cppe/src/TcpTransport/Transceiver.cpp b/cppe/src/TcpTransport/Transceiver.cpp
index f27a8189a20..ac3fb02dcd7 100644
--- a/cppe/src/TcpTransport/Transceiver.cpp
+++ b/cppe/src/TcpTransport/Transceiver.cpp
@@ -95,7 +95,7 @@ IceInternal::Transceiver::write(Buffer& buf, int timeout)
//
// Limit packet size to avoid performance problems on WIN32
//
- if(packetSize > 64 * 1024)
+ if(_isPeerLocal && packetSize > 64 * 1024)
{
packetSize = 64 * 1024;
}
@@ -427,6 +427,9 @@ IceInternal::Transceiver::Transceiver(const InstancePtr& instance, SOCKET fd) :
_logger(instance->logger()),
_fd(fd),
_desc(fdToString(fd))
+#ifdef _WIN32
+ , _isPeerLocal(isPeerLocal(fd))
+#endif
{
#ifdef _WIN32_WCE
_event = WSACreateEvent();