Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 52826 invoked from network); 25 Feb 2007 17:54:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Feb 2007 17:54:39 -0000 Received: (qmail 79626 invoked by uid 500); 25 Feb 2007 17:54:36 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 79597 invoked by uid 500); 25 Feb 2007 17:54:36 -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 79574 invoked by uid 99); 25 Feb 2007 17:54:36 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Feb 2007 09:54:36 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [195.227.30.246] (HELO datura.kippdata.de) (195.227.30.246) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Feb 2007 09:54:25 -0800 Received: from [192.168.2.123] ([192.168.2.123]) by datura.kippdata.de (8.13.5/8.13.5) with ESMTP id l1PHrxfw011917 for ; Sun, 25 Feb 2007 18:54:03 +0100 (CET) Message-ID: <45E1CD2C.9080205@kippdata.de> Date: Sun, 25 Feb 2007 18:53:48 +0100 From: Rainer Jung User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: socket is not connected any more (errno=11) References: <45D29D8A.4050906@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Fletcher Cocquyt schrieb: > But say we have a survey webapp (users fill in a form) and the following > scenario occurs: > 1) user goes to /survey/favoritemusic/ that sets a cookie upon new user landing > on the webpage > 2) the user starts filling out the form > 3) tomcat connection expires/ends > 4) mod_jk connects to new loadbalanced worker on a different app server Not clear, what you mean by that. As long as there is no request, mod_jk will not open a new connection. > 5) user finishes survey and clicks SUBMIT mod_jk gets the request including the cookie, strips the jvmRoute from the id and reconnects to the correct load balancer member (=tomcat target). Important to know: a web server process can be connected to multiple tomcat targets at the same time. > 6) survey code checks the session cookie and finds it missing due to 3,4 above > 7) survey code chucks the users responses as suspected spam (false positive) > > How do we prevent #7 ? > Can we manage this with mod_jk settings? > (mod_jk 1.2.19 > worker.tomcat-intranet-02.retries=2 > worker.tomcat-intranet-02.socket_timeout=2 > worker.tomcat-intranet-02.connect_timeout=2000 > worker.tomcat-intranet-02.prepost_timeout=5000 > worker.tomcat-intranet-02.reply_timeout=300000 > ) --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org