From 1cb59ffa7165594b5a4999696bf37aaff362ff77 Mon Sep 17 00:00:00 2001 From: wcrisman Date: Fri, 18 Jul 2014 17:21:12 -0700 Subject: [PATCH] Added clear to the socket read buffer to ensure it is in a writeable state. --- Foundation Web Core/src/com/foundation/web/server/WebServer.java | 1 + 1 file changed, 1 insertion(+) 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 88831d8..d40c3d7 100644 --- a/Foundation Web Core/src/com/foundation/web/server/WebServer.java +++ b/Foundation Web Core/src/com/foundation/web/server/WebServer.java @@ -555,6 +555,7 @@ public class WebServer { //Note: We are throddling this for active connections to prevent a single connection from hogging all the resources.// while(loopCount < 10 && result && count > 0) { loopCount++; + socketReadBuffer.clear(); count = channel.read(socketReadBuffer); socketReadBuffer.flip();