Enable TCP_NODELAY for SSH client/server
[netconf.git] / netconf / mdsal-netconf-ssh / src / main / java / org / opendaylight / netconf / ssh / SshProxyServer.java
index 1630c1b6d647361faae1063fc86afd8d6af3286a..cdc730fc17370d6c57a034d31aefadebd3bb20cf 100644 (file)
@@ -103,6 +103,7 @@ public class SshProxyServer implements AutoCloseable {
         }
         sshServer.getProperties().put(CoreModuleProperties.NIO2_READ_TIMEOUT.getName(), nioReadTimeout);
         sshServer.getProperties().put(CoreModuleProperties.AUTH_TIMEOUT.getName(), String.valueOf(idleTimeout));
+        sshServer.getProperties().put(CoreModuleProperties.TCP_NODELAY.getName(), true);
 
         final RemoteNetconfCommand.NetconfCommandFactory netconfCommandFactory =
                 new RemoteNetconfCommand.NetconfCommandFactory(clientGroup,