Skip to content

Commit

Permalink
pass timeout to paramiko's Transport (#399)
Browse files Browse the repository at this point in the history
This PR will enable the usage of the "timeout" keyword and support
dpdispatcher for machines which require a long time to connect.
  • Loading branch information
Yi-FanLi committed Oct 25, 2023
1 parent 238d311 commit 538214f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dpdispatcher/ssh_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ def _setup_ssh(self):
# Make a Paramiko Transport object using the socket
ts = paramiko.Transport(sock)
ts.banner_timeout = 60
ts.auth_timeout = self.timeout + 20
ts.use_compression(compress=True)

# Tell Paramiko that the Transport is going to be used as a client
Expand Down

0 comments on commit 538214f

Please sign in to comment.