From 736a4dc15cac351da847ca796ac267a28b827d8f Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 2 Mar 2021 14:36:12 +0100 Subject: [PATCH] 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. --- common/rdr/FdOutStream.cxx | 4 ---- 1 file changed, 4 deletions(-) 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() -- 2.39.5