Skip to content

Commit

Permalink
Enlarge banner timout (#245)
Browse files Browse the repository at this point in the history
This PR tends to solve  #244 the ssh banner timeout error when using in high concurrency scenario. I enlarge the banner timout parameter from the default 15 to 60.
  • Loading branch information
felix5572 committed Sep 2, 2022
2 parents 2385558 + 258d04b commit d3fe56a
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 @@ -127,6 +127,7 @@ def _setup_ssh(self):

#Make a Paramiko Transport object using the socket
ts = paramiko.Transport(sock)
ts.banner_timeout = 60
ts.use_compression(compress=True)

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

0 comments on commit d3fe56a

Please sign in to comment.