git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@542238
13f79535-47bb-0310-9956-
ffa450edef68
public void setTimeout(int timeout) throws IOException, ServletException,UnsupportedOperationException {
//this check should get removed as soon as connection timeout is implemented everywhere.
if (request.getAttribute("org.apache.tomcat.comet.timeout.support") == Boolean.TRUE) {
- checkWorkerThread();
request.action(ActionCode.ACTION_COMET_TIMEOUT,new Integer(timeout));
} else {
throw new UnsupportedOperationException();
connector.getContainer().getPipeline().getFirst().invoke(request, response);
if (request.isComet()) {
-
if (!response.isClosed() && !response.isError()) {
if (request.getAvailable()) {
// Invoke a read event right away if there are available bytes