You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2013/12/04 14:53:34 UTC

svn commit: r1547797 - /qpid/proton/trunk/proton-j/proton/src/main/java/org/apache/qpid/proton/driver/impl/DriverImpl.java

Author: kgiusti
Date: Wed Dec  4 13:53:34 2013
New Revision: 1547797

URL: http://svn.apache.org/r1547797
Log:
PROTON-200: use setTcpNoDelay instead of JDK7 only StandardSocketOptions

Modified:
    qpid/proton/trunk/proton-j/proton/src/main/java/org/apache/qpid/proton/driver/impl/DriverImpl.java

Modified: qpid/proton/trunk/proton-j/proton/src/main/java/org/apache/qpid/proton/driver/impl/DriverImpl.java
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-j/proton/src/main/java/org/apache/qpid/proton/driver/impl/DriverImpl.java?rev=1547797&r1=1547796&r2=1547797&view=diff
==============================================================================
--- qpid/proton/trunk/proton-j/proton/src/main/java/org/apache/qpid/proton/driver/impl/DriverImpl.java (original)
+++ qpid/proton/trunk/proton-j/proton/src/main/java/org/apache/qpid/proton/driver/impl/DriverImpl.java Wed Dec  4 13:53:34 2013
@@ -23,7 +23,6 @@ package org.apache.qpid.proton.driver.im
 import java.io.IOException;
 import java.net.InetSocketAddress;
 import java.net.ServerSocket;
-import java.net.StandardSocketOptions;
 import java.nio.channels.ClosedChannelException;
 import java.nio.channels.SelectableChannel;
 import java.nio.channels.SelectionKey;
@@ -194,7 +193,7 @@ public class DriverImpl implements Drive
             SocketChannel channel = SocketChannel.open();
             channel.configureBlocking(false);
             // Disable the Nagle algorithm on TCP connections.
-            channel.setOption(StandardSocketOptions.TCP_NODELAY, true);
+            channel.socket().setTcpNoDelay(true);
             channel.connect(new InetSocketAddress(host, port));
             return createConnector(channel, context);
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org