From: fhanik Date: Sun, 18 Mar 2007 01:59:31 +0000 (+0000) Subject: added note about timeouts X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=773992186c3440911dd8f1e97b3735b432f96940;p=tomcat7.0 added note about timeouts git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@519518 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/webapps/docs/aio.xml b/webapps/docs/aio.xml index 8abae1fd3..f7fa07185 100644 --- a/webapps/docs/aio.xml +++ b/webapps/docs/aio.xml @@ -248,6 +248,17 @@ 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: + 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. + The default value is soTimeout +

+

If you are using the APR connector, all Comet connections will have the same timeout value. It is soTimeout*50 +

+