commit: r594 - trunk/java/spread
[email protected] Wed, 09 Oct 2013 13:29:10 -0400
| Newsgroups | gmane.network.spread.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: jschultz
Date: 2013-10-09 13:29:09 -0400 (Wed, 09 Oct 2013)
New Revision: 594
Modified:
trunk/java/spread/SpreadConnection.java
Log:
Turn off Nagle algorithm in Java library.
Modified: trunk/java/spread/SpreadConnection.java
===================================================================
--- trunk/java/spread/SpreadConnection.java 2013-09-26 20:30:23 UTC (rev 593)
+++ trunk/java/spread/SpreadConnection.java 2013-10-09 17:29:09 UTC (rev 594)
@@ -876,6 +876,17 @@
throw new SpreadException("Socket(): " + e);
}
+ try
+ {
+ socket.setTcpNoDelay(true);
+ }
+ catch(SocketException e)
+ {
+ SpreadException se = new SpreadException("setTcpNoDelay(): " + e.getMessage());
+ se.initCause(e);
+ throw se;
+ }
+
// Set the socket's buffer sizes.
/////////////////////////////////
setBufferSizes();