tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net AprEndpoint.java
Date Sat, 16 Jul 2005 12:22:42 GMT
mturk       2005/07/16 05:22:42

  Modified:    util/java/org/apache/tomcat/util/net AprEndpoint.java
  Log:
  Add a missing SO_KEEPALIVE option.
  See the previous commit for an explanation.
  
  Revision  Changes    Path
  1.67      +2 -0      jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/AprEndpoint.java
  
  Index: AprEndpoint.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/AprEndpoint.java,v
  retrieving revision 1.66
  retrieving revision 1.67
  diff -u -r1.66 -r1.67
  --- AprEndpoint.java	16 Jul 2005 12:11:11 -0000	1.66
  +++ AprEndpoint.java	16 Jul 2005 12:22:42 -0000	1.67
  @@ -515,6 +515,8 @@
           if (OS.IS_UNIX) {
               Socket.optSet(serverSock, Socket.APR_SO_REUSEADDR, 1);    
           }
  +        // Deal with the firewalls that tend to drop the inactive sockets
  +        Socket.optSet(serverSock, Socket.APR_SO_KEEPALIVE, 1);
           // Bind the server socket
           int ret = Socket.bind(serverSock, inetAddress);
           if (ret != 0) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message