]> source.dussan.org Git - tigervnc.git/commitdiff
Revert "Support TCP_NOPUSH as alternative to TCP_CORK"
authorPierre Ossman <ossman@cendio.se>
Tue, 2 Mar 2021 13:36:12 +0000 (14:36 +0100)
committerPierre Ossman <ossman@cendio.se>
Tue, 2 Mar 2021 13:36:12 +0000 (14:36 +0100)
This reverts commit d6e39658ae105fca2cfe37ba736dbf0e8d8356af. Apparently
this is broken on macOS so it's not something we can make use of.

common/rdr/FdOutStream.cxx

index 3cd86927eb3964f2e70e4c4b7da3030fe334451e..ed6535a8d12b07b5c627f16b2e5dfe88fa4c1819 100644 (file)
@@ -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()