You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am pretty sure session.Close as implemented is a bit wrong. We are properly using <close-session> rpc message to gracefully close the session with the netconf server, however then we are closing the transports as well.
This should probably be modified to
Send close-session
Wait for timeout set by the context (and maybe a default if not set?)
Wait for the session to close (on ssh this causes the channel to be closed, need to test if some vendors kill the entire connection)
Never close the transport.
Transport is constructed outside of the session and passed in, it is a bit crazy that we automatically close it when the session is done as well. This is also needed to allow for transport reuse potentially.
The text was updated successfully, but these errors were encountered:
I am pretty sure
session.Close
as implemented is a bit wrong. We are properly using<close-session>
rpc message to gracefully close the session with the netconf server, however then we are closing the transports as well.This should probably be modified to
close-session
Transport is constructed outside of the session and passed in, it is a bit crazy that we automatically close it when the session is done as well. This is also needed to allow for transport reuse potentially.
The text was updated successfully, but these errors were encountered: