Skip to content

Commit d3fe56a

Browse files
authored
Enlarge banner timout (#245)
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.
2 parents 2385558 + 258d04b commit d3fe56a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dpdispatcher/ssh_context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ def _setup_ssh(self):
127127

128128
#Make a Paramiko Transport object using the socket
129129
ts = paramiko.Transport(sock)
130+
ts.banner_timeout = 60
130131
ts.use_compression(compress=True)
131132

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

0 commit comments

Comments
 (0)