From 8ce1e0217a4a68ab2a6617fb3d62369e6ab218d4 Mon Sep 17 00:00:00 2001 From: crs Date: Sat, 6 Nov 2004 16:29:06 +0000 Subject: [PATCH] Attempt to workaround laggy mouse on OS X with linux as server. --- lib/client/CServerProxy.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/client/CServerProxy.cpp b/lib/client/CServerProxy.cpp index e9f91054..a44347db 100644 --- a/lib/client/CServerProxy.cpp +++ b/lib/client/CServerProxy.cpp @@ -277,6 +277,15 @@ CServerProxy::parseMessage(const UInt8* code) return kUnknown; } + // send a reply. this is intended to work around a delay when + // running a linux server and an OS X (any BSD?) client. the + // client waits to send an ACK (if the system control flag + // net.inet.tcp.delayed_ack is 1) in hopes of piggybacking it + // on a data packet. we provide that packet here. i don't + // know why a delayed ACK should cause the server to wait since + // TCP_NODELAY is enabled. + CProtocolUtil::writef(m_stream, kMsgCNoop); + return kOkay; }