Date: Friday, March 16, 2007 @ 12:04:37
  Author: marc
    Path: /cvsroot/carob/carob/src

Modified: JavaSocket.cpp (1.90 -> 1.91)

Explained why we disable Nagle (we have our own buffered socket)


----------------+
 JavaSocket.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: carob/src/JavaSocket.cpp
diff -u carob/src/JavaSocket.cpp:1.90 carob/src/JavaSocket.cpp:1.91
--- carob/src/JavaSocket.cpp:1.90       Wed Feb 14 17:39:29 2007
+++ carob/src/JavaSocket.cpp    Fri Mar 16 12:04:37 2007
@@ -246,7 +246,8 @@
   // Set socket options
   // 1. non-blocking
   setBlockingMode(fctName, false);
-  // 2. Disable nagle algorithm
+  // 2. Always disable Nagle since we have our own and more clever
+  // buffered socket instead
   int opt_value = 1;
   if (setsockopt(socket_fd, IPPROTO_TCP, TCP_NODELAY,
                  reinterpret_cast<char*>(&opt_value), sizeof opt_value) == -1

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to