Run AsyncSshHandler.onOpenComplete() on event loop 24/102724/3
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Oct 2022 11:24:39 +0000 (13:24 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Oct 2022 11:57:25 +0000 (13:57 +0200)
commit5038dde5cdb878badaa4328e3956409917f1eaf4
tree0b452cab0d94e0272ae5dd165bda4ebef68e1d9c
parentf3fc29bd4bc3b285c97bf4408c7aa41868e50d78
Run AsyncSshHandler.onOpenComplete() on event loop

onOpenComplete() runs ctx.fireChannelActive(), which in turn talks to
other handlers. Netty silently delays the invocation if it is called
from a different thread.

Make sure we run onOpenComplete() on the appropriate executor, so that
the state transition and handler updates run synchronously.

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