With a breakpoint in the servlet handling the timeout event, I was seeing a new thread being allocated from the poll every second or so
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1061900 13f79535-47bb-0310-9956-
ffa450edef68
long timeout = (ka.getTimeout()==-1)?((long) socketProperties.getSoTimeout()):(ka.getTimeout());
boolean isTimedout = delta > timeout;
if (isTimedout) {
+ // Prevent subsequent timeouts if the timeout event takes a while to process
+ ka.access(Long.MAX_VALUE);
processSocket(ka.getChannel(), SocketStatus.TIMEOUT, true);
}
}//end if
</fix>
</changelog>
</subsection>
+ <subsection>
+ <changelog>
+ <fix>
+ Prevent possible thread exhaustion if a Comet timeout event takes a
+ while to complete. (markt)
+ </fix>
+ </changelog>
+ </subsection>
<subsection name="Jasper">
<changelog>
<fix>