Added clear to the socket read buffer to ensure it is in a writeable state.

This commit is contained in:
wcrisman
2014-07-18 17:21:12 -07:00
parent 7522497634
commit 1cb59ffa71

View File

@@ -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();