Commits

Bryan O'Sullivan  committed 5c47195

Turn off TCP_NOPUSH on OS X, because it's a wreck

  • Participants
  • Parent commits bc142e5

Comments (0)

Files changed (1)

File src/Network/Riak/Connection/NoPush.hsc

 
 noPush :: CInt
 #if defined(TCP_NOPUSH)
-noPush = #const TCP_NOPUSH
+-- TCP_NOPUSH is utterly fucked on OS X 10.6.  It introduces a delay
+-- of about 4.5 seconds per outbound packet train. What. The. Fuck.
+noPush = 0
+--noPush = #const TCP_NOPUSH
 #elif defined(TCP_CORK)
 noPush = #const TCP_CORK
 #else