Mark outbound write thread is internal 28/114128/6
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 22 Oct 2024 10:38:54 +0000 (12:38 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Wed, 23 Oct 2024 06:54:22 +0000 (06:54 +0000)
commit8f5cd19b584e047522a93acb12e594a5cb08a5cc
treed6485949d519f9e33069b1072984e3ea21d7576a
parent80e604edf880cdd4aacb9a83a68e18d622203222
Mark outbound write thread is internal

When we are writing out a message, we may be hitting a KEX -- at which
point we would normally be blocked.

The problem is that the blocked thread is usually the Netty IO thread,
which effectively ends up deadlocking it.

Prevent this situation by marking our thread as internal, which causes
SSHD to enqueue the message rather than blocking.

JIRA: NETCONF-1415
Change-Id: If472986270e827a316099168069754fe1661939d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
transport/transport-ssh/src/main/java/org/opendaylight/netconf/transport/ssh/OutboundChannelHandler.java