Added clear to the socket read buffer to ensure it is in a writeable state.
This commit is contained in:
@@ -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.//
|
//Note: We are throddling this for active connections to prevent a single connection from hogging all the resources.//
|
||||||
while(loopCount < 10 && result && count > 0) {
|
while(loopCount < 10 && result && count > 0) {
|
||||||
loopCount++;
|
loopCount++;
|
||||||
|
socketReadBuffer.clear();
|
||||||
count = channel.read(socketReadBuffer);
|
count = channel.read(socketReadBuffer);
|
||||||
socketReadBuffer.flip();
|
socketReadBuffer.flip();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user