From bb9b1f550ebb02f3a4cdf13028d02bfe2244ef91 Mon Sep 17 00:00:00 2001 From: wcrisman Date: Fri, 30 May 2014 12:11:28 -0700 Subject: [PATCH] Fixed TCP no delay in the PassThroughSocketContext. Ignored the eclipse metadata. --- .gitignore | 3 ++- .../src/com/foundation/web/server/WebServer.java | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4ee91c1..3e62235 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,5 @@ bin/ build/ *.res archives/ -/*/controls/ \ No newline at end of file +/*/controls/ +.metadata/ diff --git a/Foundation Web Core/src/com/foundation/web/server/WebServer.java b/Foundation Web Core/src/com/foundation/web/server/WebServer.java index f527bfe..d3dbba8 100644 --- a/Foundation Web Core/src/com/foundation/web/server/WebServer.java +++ b/Foundation Web Core/src/com/foundation/web/server/WebServer.java @@ -423,6 +423,7 @@ public class WebServer { channel.configureBlocking(false); channel.socket().setSendBufferSize(SEND_BUFFER_SIZE); channel.socket().setReceiveBufferSize(RECEIVE_BUFFER_SIZE); + channel.socket().setTcpNoDelay(false); networkListener.queue(runnable = new RegisterKeyRunnable(this, channel, linkedClientContext.key.selector())); linkedClientContext.key.selector().wakeup(); runnable.waitForRun();