瀏覽代碼

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()

Loading…
取消
儲存