Procházet zdrojové kódy

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 před 11 měsíci
rodič
revize
7b3fe6d283
1 změnil soubory, kde provedl 6 přidání a 1 odebrání
  1. 6
    1
      common/rdr/FdOutStream.cxx

+ 6
- 1
common/rdr/FdOutStream.cxx Zobrazit soubor

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

Načítá se…
Zrušit
Uložit