forgot to document the other way to set the individual timeout
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 19 Mar 2007 22:42:30 +0000 (22:42 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 19 Mar 2007 22:42:30 +0000 (22:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@520146 13f79535-47bb-0310-9956-ffa450edef68

webapps/docs/aio.xml

index f7fa071..98c8da1 100644 (file)
@@ -251,6 +251,7 @@ public class ChatServlet
   <subsection name="Comet timeouts">
     <p>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:
+       <source>CometEvent event.... event.setTimeout(30*1000);</source> or
        <source>event.getHttpServletRequest().setAttribute("org.apache.tomcat.comet.timeout", new Integer(30 * 1000));</source>
        This sets the timeout to 30 seconds.
        Important note, in order to set this timeout, it has to be done on the <code>BEGIN</code> event.