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 Thu, 26 May 2005 18:34:50 GMT
mturk       2005/05/26 11:34:50

  Modified:    util/java/org/apache/tomcat/util/net AprEndpoint.java
  Log:
  Set TCP_DEFER_ACCEPT socket option. This dramatically improves
  performance on linux by more then 20% for small files because the
  accept is not fired untill data is present.
  
  Revision  Changes    Path
  1.35      +4 -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.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- AprEndpoint.java	26 May 2005 15:29:55 -0000	1.34
  +++ AprEndpoint.java	26 May 2005 18:34:50 -0000	1.35
  @@ -407,6 +407,10 @@
               log.warn(sm.getString("endpoint.sendfile.nosupport"));
               useSendfile = false;
           }
  +        
  +        // Delay accepting of new connections until data is available
  +        // TODO: Make that configurable       
  +	    Socket.optSet(serverSock, Socket.APR_TCP_DEFER_ACCEPT, 1);
   
           initialized = true;
   
  
  
  

---------------------------------------------------------------------
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