git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@528816
13f79535-47bb-0310-9956-
ffa450edef68
rp.setStage(org.apache.coyote.Constants.STAGE_KEEPALIVE);
- //we're at a keep alive stage,
- openSocket = true;
- //Add the socket to the poller
- socket.getPoller().add(socket);
- //free up the thread
- break;
+ if (!error && keepAlive && !comet) {
+ //we're at a keep alive stage,
+ openSocket = true;
+ //Add the socket to the poller
+ socket.getPoller().add(socket);
+ //free up the thread
+ break;
+ }
}
rp.setStage(org.apache.coyote.Constants.STAGE_ENDED);