Update connect.py

fix cpu used 100%
This commit is contained in:
蓝枫 2015-07-21 10:26:49 +08:00
parent 8121e4942b
commit a040b1c181

View File

@ -131,7 +131,7 @@ def posix_shell(chan, username, host):
if chan in r:
try:
x = chan.recv(1024)
x = chan.recv(10240)
if len(x) == 0:
break
sys.stdout.write(x)