added note about timeouts
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 18 Mar 2007 01:59:31 +0000 (01:59 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 18 Mar 2007 01:59:31 +0000 (01:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@519518 13f79535-47bb-0310-9956-ffa450edef68

webapps/docs/aio.xml

index 8abae1f..f7fa071 100644 (file)
@@ -248,6 +248,17 @@ public class ChatServlet
   </source>
   
   </subsection>
+  <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>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.
+       The default value is <code>soTimeout</code>
+    </p>
+    <p>If you are using the APR connector, all Comet connections will have the same timeout value. It is <code>soTimeout*50</code>
+    </p>
+  </subsection>
 
   </section>