apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garrett Rooney" <roo...@electricjellyfish.net>
Subject Re: APR leaves port bound when terminated?
Date Tue, 21 Feb 2006 23:22:57 GMT
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 the
> JVM, and so I have one of my servlets call System.exit(0).  When using the
> 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 starting
> tomcat back up immediately.  I receive an error saying that the tomcat port
> 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 like
> 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

Mime
View raw message