From df0ecc6c04d64fda7fbb7cbe7b160ed3158e3231 Mon Sep 17 00:00:00 2001 From: emmanuel lecharny Date: Sat, 11 May 2024 09:55:05 +0200 Subject: [PATCH] Disable Nagle's algorithm by default --- .../mina/transport/socket/DefaultSocketSessionConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mina-core/src/main/java/org/apache/mina/transport/socket/DefaultSocketSessionConfig.java b/mina-core/src/main/java/org/apache/mina/transport/socket/DefaultSocketSessionConfig.java index dedd5b5e0..f060d723a 100644 --- a/mina-core/src/main/java/org/apache/mina/transport/socket/DefaultSocketSessionConfig.java +++ b/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 protected IoService parent;