Skip to content

Commit

Permalink
Revert "Support TCP_NOPUSH as alternative to TCP_CORK"
Browse files Browse the repository at this point in the history
This reverts commit d6e3965. Apparently
this is broken on macOS so it's not something we can make use of.
  • Loading branch information
CendioOssman committed Mar 2, 2021
1 parent 706ca2f commit 736a4dc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions common/rdr/FdOutStream.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 736a4dc

Please sign in to comment.