Browse Source

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 10 months ago
parent
commit
7b3fe6d283
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      common/rdr/FdOutStream.cxx

+ 6
- 1
common/rdr/FdOutStream.cxx View File

@@ -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);
}

Loading…
Cancel
Save