summaryrefslogtreecommitdiff
path: root/cppe/src/TcpTransport/Transceiver.cpp
diff options
context:
space:
mode:
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();