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

662: Add activity check to cached sftp connections #808

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

greg-offerfit
Copy link
Contributor

@greg-offerfit greg-offerfit commented Mar 4, 2024

Title

Please pick a concise, informative and complete title for your PR.
The title is important because it will appear in our change log.

Motivation

This PR fixes the bug where SSH connections would hang with no response, when a cached connection was used, and the ssh connection was interrupted due to external factors (network, etc). This was first detailed here:

Additionally, this filters out the connect_kwargs key/value pair when validating the kwargs when opening the sftp file. connect_kwargs is sftp-implementation-specific, so is flagged as "invalid" with the universal validation function, which doesn't cause any problems... but does pollute the log with confusing logs suggesting the the connect_kwargs arg isn't getting used when it is correctly used.

@mpenkov mpenkov merged commit 6b7904a into piskvorky:develop Mar 5, 2024
21 checks passed
@mpenkov
Copy link
Collaborator

mpenkov commented Mar 5, 2024

Thank you!

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.

SFTP smart_open does not recover when SSH session is reset.
2 participants