tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fenlason, Josh" <jfenla...@ptc.com>
Subject Native Connector Patch
Date Mon, 06 Feb 2006 19:01:32 GMT
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);
  }
 
--- 385,390 ----

Mime
View raw message