소스 검색

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 파일 보기

using namespace rdr; using namespace rdr;


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

Loading…
취소
저장