Skip to content

Remove paramiko hacks#464

Open
uruun wants to merge 2 commits intoMarketSquare:masterfrom
uruun:remove_paramiko_hacks
Open

Remove paramiko hacks#464
uruun wants to merge 2 commits intoMarketSquare:masterfrom
uruun:remove_paramiko_hacks

Conversation

@uruun
Copy link

@uruun uruun commented Sep 2, 2024

Remove two paramiko hacks done in client.py. They both seem like very old workarounds and their functionality can be achieved through official paramiko APIs.

The first one set the banner timeout for paramiko Transport to 45 seconds. banner_timeout can be set in paramiko SSHClient.connect or with Transport.banner_timeout, I went with connect as it seems to be the expected way to do it. This might be a breaking change if someone is using the SSHLibrary SSHClient.client directly as then the timeout will be the default 15 seconds.

The second one is a workaround for % symbols in file paths reported in 2012: http://code.google.com/p/robotframework-sshlibrary/issues/detail?id=55 . It seems this has been fixed in paramiko in 2014 here: paramiko/paramiko@6e9abc3 . As it has been fixed for so long I hope everyone moved on to newer paramiko and this is not needed anymore.

Also removed small remaining Python 2 compatibility.

@uruun
Copy link
Author

uruun commented Sep 3, 2024

The Read Until With Encoding Errors On Strict test is failing because of #431, issue #465 .

@Noordsestern Noordsestern modified the milestones: v4.0, 4.1 Mar 7, 2025
@Noordsestern Noordsestern added the acknowledge To be acknowledged in release notes label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

acknowledge To be acknowledged in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants