tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remy Maucherat <r...@apache.org>
Subject Re: Native Connector Patch
Date Mon, 06 Feb 2006 21:15:42 GMT
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message