-
Notifications
You must be signed in to change notification settings - Fork 554
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
eos: close() is not closing the connection #1951
Comments
This looks like a conscious design decision, due to the fact that no long-lived TCP session is used by the driver when using a non-SSH transport. The documentation for Line 154 in 50ab9f7
Willing to brook debate, but this looks like :wontfix: to me? |
Yes, I think there is the question of what does Probably the most logical thing in a vacuum would be to raise an exception for HTTP based transport since is_alive() is probably not meaningful there. But then that could make you have different code between HTTP-based devices versus SSH-based devices. FWIW, is_alive() does not work all that well for SSH either. |
In our API, when we get a call - 1) we create a new connection using EOSDriver 2) Run the command 3) Close the connection for every request. Due to increased volume in our API, we are seeing socket error in the OPEN method in the eapi. if the connection is not closing, will there be a leak in the connection in our API because we are creating new connection every request. |
Description of Issue/Question
The connection is still alive and usable after .close() is executed.
It looks like close() is not actually closing the connection?
Setup
napalm version
(Paste verbatim output from
pip freeze | grep napalm
between quotes below)Network operating system version
(Paste verbatim output from
show version
- or equivalent - between quotes below)Steps to Reproduce the Issue
Proof the connect is not active until
device.open()
:The text was updated successfully, but these errors were encountered: