apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: APR leaves port bound when terminated?
Date Tue, 21 Feb 2006 23:34:50 GMT
I would guess this in an artifact of SO_REUSEADDR

Garrett Rooney wrote:
> 
> On 2/21/06, Sean Neeley <Sean.Neeley@producepro.com> 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
> 


-- 
===========================================================================
   Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
	    "If you can dodge a wrench, you can dodge a ball."

Mime
View raw message