Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 61844 invoked from network); 21 Feb 2006 23:23:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Feb 2006 23:23:22 -0000 Received: (qmail 64170 invoked by uid 500); 21 Feb 2006 23:23:21 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 63838 invoked by uid 500); 21 Feb 2006 23:23:20 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 63814 invoked by uid 99); 21 Feb 2006 23:23:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2006 15:23:19 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of rooneg@gmail.com designates 64.233.184.205 as permitted sender) Received: from [64.233.184.205] (HELO wproxy.gmail.com) (64.233.184.205) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2006 15:23:19 -0800 Received: by wproxy.gmail.com with SMTP id i23so255207wra for ; Tue, 21 Feb 2006 15:22:58 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pcRoE6wVBgQcF0a2nL3p/zVpk1uNUTqOvXgdQ5iFykqPfQSWAHHOYR8nBR2xP8VyIxocvwSfFvekFlmvl5iY06Y2qd+hSK3MtrqXDFQaeR9cAgYyfk6OGxaOdfxvXu6bg+ZaJPIyklibF4bqB2NUnwElhlbgKD2JJc/i8I677jA= Received: by 10.54.122.13 with SMTP id u13mr389201wrc; Tue, 21 Feb 2006 15:22:57 -0800 (PST) Received: by 10.54.121.15 with HTTP; Tue, 21 Feb 2006 15:22:57 -0800 (PST) Message-ID: <7edfeeef0602211522s17933ee0j466d05a5fd795852@mail.gmail.com> Date: Tue, 21 Feb 2006 15:22:57 -0800 From: "Garrett Rooney" Sender: rooneg@gmail.com To: "Sean Neeley" Subject: Re: APR leaves port bound when terminated? Cc: dev@apr.apache.org In-Reply-To: <7800E5CFE900F746BEF020ADD703F6F944F68D@sbs.ProducePro.local> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <7800E5CFE900F746BEF020ADD703F6F944F68D@sbs.ProducePro.local> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 2/21/06, Sean Neeley wrote: > I'm using APR 1.2.2 with Tomcat 5.5.15. Occasionally I need to restart t= he > JVM, and so I have one of my servlets call System.exit(0). When using th= e > APR libraries with tomcat, exiting the JVM in this manor leaves port 8009= in > the FIN_WAIT2 state (see netstat man page). This prevents me from starti= ng > tomcat back up immediately. I receive an error saying that the tomcat po= rt > is already bound. If I remove the APR libraries so that tomcat does not = use > them, I no longer encounter this problem. Can someone help? I would lik= e > to use APR, but this problem prevents me. Thanks. That sounds like a Tomcat bug to me. There's nothing intrinsic in the APR libraries that require it to behave that way. -garrett