浏览代码

Revert "Support TCP_NOPUSH as alternative to TCP_CORK"

This reverts commit d6e39658ae. Apparently
this is broken on macOS so it's not something we can make use of.
tags/v1.11.90
Pierre Ossman 3 年前
父节点
当前提交
736a4dc15c
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0
    4
      common/rdr/FdOutStream.cxx

+ 0
- 4
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()

正在加载...
取消
保存