Rework AsyncSshHandler callback locking 36/102736/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Oct 2022 09:15:33 +0000 (11:15 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Oct 2022 13:07:46 +0000 (15:07 +0200)
commit1e399271be1c78c9953eccde7f626ed0ff4ff81d
tree67a188441c61db9d73dca0e1b0e9ed4ccac695e5
parentcd0fe54e116b26fd4778fe68001e3231f76ba9df
Rework AsyncSshHandler callback locking

We have top-half and bottom-half dispatch going on here, with both paths
acquiring the object lock. Unify callbacks and lock object before
deciding which path to take.

JIRA: NETCONF-905
Change-Id: Ic42a652ed06ea8bc90cbe504963cc1405dad7fdc
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 0a29984645d407de655066110362261146464be1)
netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/AsyncSshHandler.java