You're right that AprEndpoint apparently tries to set that.  However, without 
my patch I can't restart Tomcat without having to wait several minutes.  Any 
suggestions on why that might be?  Thanks.
,
Josh.

> -----Original Message-----
> From: Remy Maucherat [mailto:[EMAIL PROTECTED] 
> Sent: Monday, February 06, 2006 3:16 PM
> To: Tomcat Developers List
> Subject: Re: Native Connector Patch
> 
> 
> Fenlason, Josh wrote:
> > Here's a patch for the native APR connector so that fixes problems
> > binding on restart (see attached thread for more details).  
> Thanks go 
> > out to Bill Barker for coming up with this.  I've tested this on 
> > Windows, Solaris, and AIX and it works fine.  It would be 
> great if this 
> > could be included in the 1.1.2 native connector.  Thanks.
> > ,
> > Josh.
> >  
> > bash-2.03$ diff -c network.c network.c.orig
> > *** network.c   Mon Feb  6 12:50:54 2006
> > --- network.c.orig      Mon Feb  6 12:50:11 2006
> > ***************
> > *** 385,391 ****
> >       UNREFERENCED_STDARGS;
> >       TCN_ASSERT(sock != 0);
> >       TCN_ASSERT(s->sock != NULL);
> > -     apr_socket_opt_set( s->sock, APR_SO_REUSEADDR, 1 );
> >       return (jint)apr_socket_bind(s->sock, a);
> >   }
> 
> The Java code in AprEndpoint already includes 
> Socket.optSet(serverSock, 
> Socket.APR_SO_REUSEADDR, 1);
> 
> Rémy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to