Переглянути джерело

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

Завантаження…
Відмінити
Зберегти