Juniper / go-netconf

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

DialSSH not closing SSH session when netconf fails. #86

Closed bsherwood12 closed 5 years ago

bsherwood12 commented 5 years ago

DialSSH (https://github.com/Juniper/go-netconf/blob/master/netconf/transport_ssh.go#L111) Does not close the ssh session if the netconf session fails.

DialSSH needs to close the ssh session if the netconf session fails, or handle this situation in some way that does not cause a hung ssh session.

pplavetzki commented 5 years ago

@bsherwood12 I will create a pull request referencing this issue.