DongRyeol Cha c29f9077cf Fix starvation of file descriptors due to netconf memory leak
If there are some errors during start the netconf session, SshClient is not freed so that sockets or file descriptors that made by SshClient are not freed as well.
It leads to starvation of file descriptors for onos so that onos cannot make network connections, spawn the threads so on.

This fix does not permit reusing of already closed NetconfSessionMinaImpl.

ONOS-7833

Change-Id: I1c8799cbbf8b28d23629123ad5d31ccca4a1fb3d
(cherry picked from commit 8f4c1e2ac5ed0033a472a4eb44fdfcba12145134)
2018-11-07 08:22:18 +00:00
..