Fix channel inactive handling for SSH transport 46/109046/5
authorRuslan Kashapov <ruslan.kashapov@pantheon.tech>
Wed, 22 Nov 2023 10:21:05 +0000 (12:21 +0200)
committerRobert Varga <nite@hq.sk>
Sun, 26 Nov 2023 11:28:49 +0000 (11:28 +0000)
commitb35cf934cb55f2dbcf4a834eb754c997196d0e39
tree56ca99f3f45f2abaf328452c7452629f113eb195
parentf79d7817efd1be3aa4746625966dcc46c885d550
Fix channel inactive handling for SSH transport

Channel inactive handler require to re-transfer the event
down the pipeline in order for subsequent handler to be
triggered as well. SSH transport pipeline did contain two
channel inactive handlers both terminating the event
resulting *NetconfSession not handling channel termination
properly.

Fixed, case covered by test.

JIRA: NETCONF-1200
Change-Id: I2a78709909e1b8509b562a8fa0bf640c45c91432
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
transport/transport-ssh/src/main/java/org/opendaylight/netconf/transport/ssh/TransportIoSession.java
transport/transport-ssh/src/main/java/org/opendaylight/netconf/transport/ssh/TransportUtils.java
transport/transport-ssh/src/test/java/org/opendaylight/netconf/transport/ssh/SshClientServerTest.java