浏览代码

Emulate corking when TCP_CORK is missing

If we can't rely on the OS to handle corking for us, then we need to
enable our own handling of it.
pull/1641/head
Pierre Ossman 11 个月前
父节点
当前提交
7b3fe6d283
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6
    1
      common/rdr/FdOutStream.cxx

+ 6
- 1
common/rdr/FdOutStream.cxx 查看文件

@@ -52,7 +52,12 @@
using namespace rdr;

FdOutStream::FdOutStream(int fd_)
: BufferedOutStream(false), fd(fd_)
#ifdef TCP_CORK
: BufferedOutStream(false),
#else
: BufferedOutStream(true),
#endif
fd(fd_)
{
gettimeofday(&lastWrite, NULL);
}

正在加载...
取消
保存