snichol 2002/07/30 13:32:05 Modified: java/docs changes.html java/src/org/apache/soap/transport/http SOAPHTTPConnection.java Log: Disable the Nagle algorithm on the client by default. This dramatically decreases latency when the payload is smaller than the TCP segment size, assuming the server platform uses a long delayed ACK timer (typically 200 ms). Revision Changes Path 1.34 +4 -0 xml-soap/java/docs/changes.html Index: changes.html =================================================================== RCS file: /home/cvs/xml-soap/java/docs/changes.html,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- changes.html 26 Jul 2002 04:48:29 -0000 1.33 +++ changes.html 30 Jul 2002 20:32:04 -0000 1.34 @@ -49,6 +49,10 @@ DOMResult on a per-Call basis. This is on the client only. If testing establishes that the Transform offers a significant speed improvement, the server code may be changed as well.</li> + <li>Disable the Nagle algorithm on the client by default. + This dramatically decreases latency when the payload is smaller + than the TCP segment size, assuming the server platform uses + a long delayed ACK timer (typically 200 ms).</li> </ul> </li> <li><A name="v2.3.1"><STRONG>Version 2.3.1</STRONG></A> 1.25 +5 -1 xml-soap/java/src/org/apache/soap/transport/http/SOAPHTTPConnection.java Index: SOAPHTTPConnection.java =================================================================== RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/transport/http/SOAPHTTPConnection.java,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- SOAPHTTPConnection.java 9 Jul 2002 16:30:55 -0000 1.24 +++ SOAPHTTPConnection.java 30 Jul 2002 20:32:05 -0000 1.25 @@ -387,7 +387,11 @@ { TransportMessage msg = new TransportMessage(payload, ctx, headers); msg.save(); - + + // Default to best setting for payloads smaller than TCP segment + // size. For larger payloads, Nagle makes no difference. + if (tcpNoDelay == null) + tcpNoDelay = Boolean.TRUE; response = HTTPUtils.post (sendTo, msg, timeout, httpProxyHost, httpProxyPort, outputBufferSize, tcpNoDelay,
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>