Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EC30268D1 for ; Fri, 8 Jul 2011 20:09:55 +0000 (UTC) Received: (qmail 44854 invoked by uid 500); 8 Jul 2011 20:09:52 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 44775 invoked by uid 500); 8 Jul 2011 20:09:52 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 44766 invoked by uid 99); 8 Jul 2011 20:09:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 20:09:51 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.59.227] (HELO qmta12.westchester.pa.mail.comcast.net) (76.96.59.227) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 20:09:42 +0000 Received: from omta14.westchester.pa.mail.comcast.net ([76.96.62.60]) by qmta12.westchester.pa.mail.comcast.net with comcast id 5XuY1h0051HzFnQ5CY9NWl; Fri, 08 Jul 2011 20:09:22 +0000 Received: from [192.168.1.104] ([50.133.145.196]) by omta14.westchester.pa.mail.comcast.net with comcast id 5Y9N1h0074ETvKE3aY9NEV; Fri, 08 Jul 2011 20:09:22 +0000 Message-ID: <4E1763F3.8040208@christopherschultz.net> Date: Fri, 08 Jul 2011 16:09:23 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Uploading large files and session timeout References: In-Reply-To: X-Enigmail-Version: 1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sai, On 7/8/2011 10:25 AM, Sai Pullabhotla wrote: > If the upload takes longer then the session timeout, the session gets > invalidated right after the upload. Tis means no further requests are > accepted unless the user logs back in. Is this the expected > behavior? Yes, under certain configurations. > Is there any way to work around this and keep the session active? Yes. See the org.apache.catalina.session.StandardSession.ACTIVITY_CHECK system property in http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html#Sessions I think that's exactly what you're looking for. Note that there is some overhead associated with tracking these active requests and if you want super-high performance, you might want to go with another solution. > I guess one way to fix this is to have a large session timeout like > an hour or two, but we prefer not to do that for obvious reasons. Or use Chuck's suggestion to change the timeout for certain requests, then change them back. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk4XY/MACgkQ9CaO5/Lv0PBR8ACfWrOf+3q1k1jqgokp4og7dzPn VJYAoI1BP6QvnfZub5TmxM2TweobIeLn =I6BG -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org