Enable TCP_NODELAY for SSH client/server 08/96308/1
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:29 +0000 (09:10 +0000)
commit26c04ce0f0c6b175a7bc44f215efa64258ca2351
tree1db274f9f464d5070c625c1bfa03b18dd09fa9ff
parent3e74785ba264a1b457dbfdf618c69c630781e13e
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>
(cherry picked from commit 726ee92c6052437074062ffe790743eab58de2af)
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