Skip to content
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

timeout in _get_channel_packet during _init_sftp_connection should be a failure #1684

Closed
wants to merge 1 commit into from

Conversation

ziktar
Copy link

@ziktar ziktar commented Jul 26, 2021

If using SFTP to connect to a server that timed out during the initial connection, you'll get weird error messages, as the _init_sftp_connection will ignore the timeout and continue to try to connect, but now the underlying SSH connection is in a weird state. Instead, it should treat that as a failure.

The underlying issue can be reproduced by changing the timeout to a really small value (say 1 second) and then connecting to a server far enough away that it'll timeout during connection.

@terrafrost
Copy link
Member

I cherry-picked this to the 1.0 branch and then merged it to 2.0, 3.0 and master:

dab514f

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

3 participants