Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 63077 invoked from network); 13 Jul 2006 00:07:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jul 2006 00:07:45 -0000 Received: (qmail 41233 invoked by uid 500); 13 Jul 2006 00:07:43 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 40561 invoked by uid 500); 13 Jul 2006 00:07:41 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 40544 invoked by uid 99); 13 Jul 2006 00:07:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jul 2006 17:07:41 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [206.123.111.90] (HELO mail.loukasmgmt.com) (206.123.111.90) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jul 2006 17:07:40 -0700 Received: (qmail 27352 invoked by uid 510); 12 Jul 2006 19:07:19 -0500 Received: from unknown (HELO ?192.168.3.105?) (smtp@loukasmgmt.com@72.64.67.249) by mail.loukasmgmt.com with SMTP; 12 Jul 2006 19:07:19 -0500 Message-ID: <44B58EB2.8010204@hanik.com> Date: Wed, 12 Jul 2006 19:07:14 -0500 From: Filip Hanik - Dev Lists User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Tomcat Developers List Subject: Comet timeout proposal Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 1. Proposal one - per socket timeout ability for comet requests I was thinking of enhancing the Comet servlet with the ability to add a per-socket-timeout, so that Comet requests don't have to be tuned under the regular timeout specified in server.xml public void setTimeout(HttpServletRequest request, HttpServletResponse response, long timeout) throws IOException, ServletException { request.setAttribute("org.apache.tomcat.comet.timeout", new Long(timeout)); } For the NIO connector, I can hold this value in the key attachment, for the APR, we could maintain a parallel array to the array with the socket decriptors that contains the timeout for the respective socket, or similar method. let me know what you think, Remy would you like to do this on the APR side? Filip --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org