Enable TCP_NODELAY for SSH client/server 09/96209/3
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 17 May 2021 15:10:45 +0000 (17:10 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 21 May 2021 09:10:20 +0000 (09:10 +0000)
commit726ee92c6052437074062ffe790743eab58de2af
tree9339b6db1fc75a67379b14460783b2248cfa194b
parentf1e50d302a70725a698c2b16bb7f3ec71f911b6d
Enable TCP_NODELAY for SSH client/server

Both NETCONF northbound (SshProxyServer) and southbound
(AsyncSshHandler) plugins exhibit latencies caused by Nagle's algorithm.
These are superfluous, as we typically work in request-response manner,
with reasonable level of buffering going on in the intermediate layers.

Set TCP_NODELAY flag to get rid of these artifacts.

JIRA: NETCONF-776
Change-Id: I68a87cc2bef4f0032e104833b8d241f5b1f7566b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/mdsal-netconf-ssh/src/main/java/org/opendaylight/netconf/ssh/SshProxyServer.java
netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/AsyncSshHandler.java