Those of you who don't see what is going on here... look up Nagle's Algorithm at http://searchnetworking.techtarget.com/sDefinition/0,,sid7_gci754347,00.html
----- Forwarded message from Matthew Toseland <[EMAIL PROTECTED]> ----- To: [EMAIL PROTECTED] Subject: [freenet-CVS] freenet/src/freenet/transport tcpConnection.java,1.7,1.8 From: Matthew Toseland <[EMAIL PROTECTED]> X-BeenThere: [EMAIL PROTECTED] X-Mailman-Version: 2.0.12 Reply-To: [EMAIL PROTECTED] List-Help: <mailto:cvs-request@;freenetproject.org?subject=help> List-Post: <mailto:cvs@;freenetproject.org> List-Subscribe: <http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/cvs>, <mailto:cvs-request@;freenetproject.org?subject=subscribe> List-Id: <cvs.freenetproject.org> List-Unsubscribe: <http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/cvs>, <mailto:cvs-request@;freenetproject.org?subject=unsubscribe> List-Archive: <http://hawk.freenetproject.org/pipermail/cvs/> Update of /cvsroot/freenet/freenet/src/freenet/transport In directory usw-pr-cvs1:/tmp/cvs-serv2112/src/freenet/transport Modified Files: tcpConnection.java Log Message: DISABLE NAGLE'S ALGORITHM. This should reduce connection open times and thus average hop times... A LOT Index: tcpConnection.java =================================================================== RCS file: /cvsroot/freenet/freenet/src/freenet/transport/tcpConnection.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** tcpConnection.java 22 Oct 2002 01:40:31 -0000 1.7 --- tcpConnection.java 24 Oct 2002 00:42:42 -0000 1.8 *************** *** 34,37 **** --- 34,41 ---- long time = System.currentTimeMillis(); sock = t.getSocketFactory().createSocket(addr.getHost(), addr.getPort()); + if(!sock.getTcpNoDelay()) { + Core.logger.log(this, "Disabling Nagle's Algorithm!", +Core.logger.DEBUG); + sock.setTcpNoDelay(true); + } Core.diagnostics.occurrenceContinuous("socketTime", System.currentTimeMillis() - time); _______________________________________________ cvs mailing list [EMAIL PROTECTED] http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/cvs ----- End forwarded message ----- -- Matthew Toseland [EMAIL PROTECTED] [EMAIL PROTECTED] Freenet/Coldstore open source hacker. Employed full time by Freenet Project Inc. from 11/9/02 to 11/11/02. http://freenetproject.org/
msg04427/pgp00000.pgp
Description: PGP signature
