Author: fhanik
Date: Sat Mar 17 18:59:31 2007
New Revision: 519518

URL: http://svn.apache.org/viewvc?view=rev&rev=519518
Log:
added note about timeouts

Modified:
    tomcat/tc6.0.x/trunk/webapps/docs/aio.xml

Modified: tomcat/tc6.0.x/trunk/webapps/docs/aio.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/aio.xml?view=diff&rev=519518&r1=519517&r2=519518
==============================================================================
--- tomcat/tc6.0.x/trunk/webapps/docs/aio.xml (original)
+++ tomcat/tc6.0.x/trunk/webapps/docs/aio.xml Sat Mar 17 18:59:31 2007
@@ -248,6 +248,17 @@
   </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>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to