Attempt to workaround laggy mouse on OS X with linux as server.

This commit is contained in:
crs 2004-11-06 16:29:06 +00:00
parent 57fddf4cdc
commit 8ce1e0217a
1 changed files with 9 additions and 0 deletions

View File

@ -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;
}