-
Notifications
You must be signed in to change notification settings - Fork 390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broke out of main loop #442
Comments
No. This error is typically received when the peer of the netconf session terminates the connection, or there is some issue with the netwoirk infrastructure between the peers.
Closing a session gracefully is the responsibility of the "user", or client. The router can absolutely decide to close the connection, but that would look non-graceful. It would typically result in a read event and a zero-length read, followed by raising the exception with any left-over data.
Yes. Basically, any inflight messages may be lost if the connection is torn down non-gracefully.
If Hopefully this makes sense! |
Thanks @einarnn that is really helpful., but now I have a more serious error. I can switch to a new issue if requested or another forum if that is more appropriate. As I mentioned before, I am using is salt/napalm/pyjunos-eznc/ncclient/paramiko to communicate with a Juniper router. Intermittently I am getting a pyjunos-eznc A NETCONF trace on the router during this transaction shows that the router responded to the RPC within a second, but I am not sure how to positively confirm the response data was received by ncclient (or paramiko). Would increasing the channel buffer size decrease the probability of this happening? |
Try enabling debug logging on the module |
Assuming that this issue is no longer live; closing. |
I'm using ncclient in this stack: salt/napalm/pyjunos-eznc/ncclient/paramiko to communicate with a Juniper router. I see frequent messages like the following in the debug log coming from
ncclient.transport.ssh.SSHSession.run
.Does this mean that something higher up the stack did not close the session when it should have? Can the Juniper router close the session when it thinks it is time to close or is it the responsibility of the user to close the session? The impact seems minimal because the next action taken by ncclient is to clean up the session with a
close()
.If my reading of the
while
loop is correct, the only way to exit is by #268 or by raising an exception. Is this correct or is the thread killed from outside? Also, how is it conclusive that the session has ended if there areevents
but nodata
?The text was updated successfully, but these errors were encountered: