Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

More Fun with Timeouts #46

Merged
merged 2 commits into from
Dec 9, 2024
Merged

More Fun with Timeouts #46

merged 2 commits into from
Dec 9, 2024

Conversation

APCBoston
Copy link
Contributor

In #45, I erroneously believed that a call to Paramiko's Transport.open_channel() with the timeout kwarg would set a timeout on the resulting Paramiko channel object. As discussed at #28 (comment), that timeout only pertains to opening the channel. There is a separate instance method to set the timeout for subsequent channel IO, which is implemented here.

Given this updated understanding of the timeout parameter in open_channel(), I have changed that timeout from general_timeout to initial_timeout. I am not attached to this decision if others disagree. I also added a detailed comment with link to the relevant Paramiko code, so that anybody subsequently reading this code may better understand what it is doing and why.

Closes #28

Builds on #45

for paramiko's behavior of always opening the channel in blocking mode,
only applying the timeout kwarg to the initial connection.
@APCBoston
Copy link
Contributor Author

@JennToo do we need to get the Coveralls check passing on this? And if so, do you have a preference between having me write a test to cover these two lines of code vs increasing coverage somewhere else?

@JennToo
Copy link
Member

JennToo commented Dec 9, 2024

Ah sorry I lost the initial email about this.

I wouldn't sweat the coveralls thing

@JennToo JennToo merged commit ce96160 into ADTRAN:main Dec 9, 2024
1 of 2 checks passed
@JennToo
Copy link
Member

JennToo commented Dec 9, 2024

Released in 3.1.3

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exceptions in Socket _recv_loop may cause thread to die silently
2 participants