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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]