Comet connection handling. When the response.getWriter().close() method has been...
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 19 Jul 2006 17:49:47 +0000 (17:49 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 19 Jul 2006 17:49:47 +0000 (17:49 +0000)
commitcb2104fc2eb9d2fce2b59f340364e3ef4d4fccf1
tree18b332cb7e5f9fd3d09ea649224f9e19719ccc3d
parent5a53e082e0cd76960e24dbaf4749dc0c545b5ab4
Comet connection handling. When the response.getWriter().close() method has been called,
the comet connection is setup for closure instead of waiting for a timeout.
This is necessary since the servlet could have set a long timeout.
Also, improve on timeout checking. Only use the optimization for how frequently we need to check the keys if there has been no activity on the selector. During heavy activity, the optimization takes into effect.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@423544 13f79535-47bb-0310-9956-ffa450edef68
java/org/apache/coyote/http11/Http11NioProcessor.java
java/org/apache/coyote/http11/InternalNioOutputBuffer.java
java/org/apache/tomcat/util/net/NioEndpoint.java