Juniper / go-netconf

NETCONF implementation in Go.
Other
253 stars 110 forks source link

Close ssh socket even if we get an error #92

Closed luke-orden closed 4 years ago

luke-orden commented 4 years ago

Currently if you get an error when running t.sshSession.Close() the socket will be left open, and there is no way to close it. If this happens enough times it will cause the device to stop accepting any ssh connection until the program that has all the open connections is closed.

Therefore I have updated to close the socket even if we see an error when running t.sshSession.Close(). This way the socket isn't left in an ESTABLISHED state.

jejenone commented 4 years ago

@nemith @GIC-de what is the status of this project?