From: Pierre Ossman Date: Tue, 2 Mar 2021 13:36:12 +0000 (+0100) Subject: Revert "Support TCP_NOPUSH as alternative to TCP_CORK" X-Git-Tag: v1.11.90~61 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=736a4dc15cac351da847ca796ac267a28b827d8f;p=tigervnc.git Revert "Support TCP_NOPUSH as alternative to TCP_CORK" This reverts commit d6e39658ae105fca2cfe37ba736dbf0e8d8356af. Apparently this is broken on macOS so it's not something we can make use of. --- diff --git a/common/rdr/FdOutStream.cxx b/common/rdr/FdOutStream.cxx index 3cd86927..ed6535a8 100644 --- a/common/rdr/FdOutStream.cxx +++ b/common/rdr/FdOutStream.cxx @@ -74,10 +74,6 @@ void FdOutStream::cork(bool enable) int one = enable ? 1 : 0; setsockopt(fd, IPPROTO_TCP, TCP_CORK, (char *)&one, sizeof(one)); #endif -#ifdef TCP_NOPUSH - int one = enable ? 1 : 0; - setsockopt(fd, IPPROTO_TCP, TCP_NOPUSH, (char *)&one, sizeof(one)); -#endif } bool FdOutStream::flushBuffer()