Skip to content

Add new "scp_socket_timeout" parameter to "Open Connection"#479

Open
NSavatier wants to merge 1 commit intoMarketSquare:masterfrom
viveris:add_scp_socket_timeout
Open

Add new "scp_socket_timeout" parameter to "Open Connection"#479
NSavatier wants to merge 1 commit intoMarketSquare:masterfrom
viveris:add_scp_socket_timeout

Conversation

@NSavatier
Copy link

Hello,

The idea of this PR is expose the socket_timeout parameter of the underlying SCPClient (see https://github.com/jbardin/scp.py/blob/master/scp.py#L117) to users of the SSHLibrary via a new parameter of the keyword "Open Connection".

That way, the user of the Library may configure the timeout used for scp operations, for cases when it is too short.
This solves this issue: #397

And is quite similar to this PR #423 (my code is inspired from it with some minor changes).

I've added a few simple tests to cover this new parameter, please let me know if they seem sufficient.

This allows to expose the "socket_timeout" parameter of SCPClient.
It allows users to define a specific timeout when the connection
used is not stable, and default timeout of 10s is too short.
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.

1 participant