long socketRef = socketWrapper.getSocket().longValue();
- while (!error && keepAlive && !comet && !isAsync() && !endpoint.isPaused()) {
+ while (!error && keepAlive && !comet && !isAsync() &&
+ !endpoint.isPaused()) {
// Parsing the request header
try {
boolean keptAlive = false;
- while (!error && keepAlive && !comet && !isAsync() && !endpoint.isPaused()) {
+ while (!error && keepAlive && !comet && !isAsync() &&
+ !endpoint.isPaused()) {
+
//always default to our soTimeout
socketWrapper.setTimeout(soTimeout);
// Parsing the request header
boolean keptAlive = socketWrapper.isKeptAlive();
- while (!error && keepAlive && !endpoint.isPaused()) {
+ while (!error && keepAlive && !comet && !isAsync() &&
+ !endpoint.isPaused()) {
// Parsing the request header
try {
protected boolean breakKeepAliveLoop(SocketWrapper<Socket> socketWrapper) {
// If we don't have a pipe-lined request allow this thread to be
// used by another connection
- if (isAsync() || error || inputBuffer.lastValid == 0) {
+ if (inputBuffer.lastValid == 0) {
return true;
}
return false;