elecharny commented on code in PR #44:
URL: https://github.com/apache/mina/pull/44#discussion_r1597473106


##########
mina-core/src/main/java/org/apache/mina/transport/socket/DefaultSocketSessionConfig.java:
##########
@@ -37,7 +37,7 @@ public class DefaultSocketSessionConfig extends 
AbstractSocketSessionConfig {
 
     private static final int DEFAULT_SO_LINGER = -1;
 
-    private static final boolean DEFAULT_TCP_NO_DELAY = false;
+    private static final boolean DEFAULT_TCP_NO_DELAY = true; // Disable Nagle 
algorithm by default

Review Comment:
   Hi @jon-valliere, just read this blog post: 
https://brooker.co.za/blog/2024/05/09/nagle.html
   
   Somehow, Nagle's algorithm is a thing of the past (ie when we were dealing 
with terminals over slow connections). In MINA's context, and if we except 
SSHD, I do think that the default to disable Nagle's algorithm actually makes 
sense. Most of MINA based application don't deal with char by char 
communication, rather with quite big chunks of data, so there is little need to 
wait for an ACK from the server.
   
   Anyway, this is configurable, so I guess it should not be a big deal.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to