git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@521246
13f79535-47bb-0310-9956-
ffa450edef68
try {
// Get first message of the request
if (!readMessage(requestHeaderMessage, true,
- keptAlive && (endpoint.getCurrentThreadsBusy() > limit))) {
+ keptAlive && (endpoint.getCurrentThreadsBusy() >= limit))) {
// This means that no data is available right now
// (long keepalive), so that the processor should be recycled
// and the method should return true
Socket.timeoutSet(socket, soTimeout * 1000);
}
if (!inputBuffer.parseRequestLine
- (keptAlive && (endpoint.getCurrentThreadsBusy() > limit))) {
+ (keptAlive && (endpoint.getCurrentThreadsBusy() >= limit))) {
// This means that no data is available right now
// (long keepalive), so that the processor should be recycled
// and the method should return true