From: fhanik Date: Mon, 19 Mar 2007 22:42:30 +0000 (+0000) Subject: forgot to document the other way to set the individual timeout X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f8b536a2f6f4319ca5ad74c96d37049eac0ee59f;p=tomcat7.0 forgot to document the other way to set the individual timeout git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@520146 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/webapps/docs/aio.xml b/webapps/docs/aio.xml index f7fa07185..98c8da180 100644 --- a/webapps/docs/aio.xml +++ b/webapps/docs/aio.xml @@ -251,6 +251,7 @@ public class ChatServlet

If you are using the NIO connector, you can set individual timeouts for your different comet connections. To set a timeout, simple set a request attribute like the following code shows: + CometEvent event.... event.setTimeout(30*1000); or event.getHttpServletRequest().setAttribute("org.apache.tomcat.comet.timeout", new Integer(30 * 1000)); This sets the timeout to 30 seconds. Important note, in order to set this timeout, it has to be done on the BEGIN event.