Update connect.py

fix cpu used 100%
pull/14/head
蓝枫 2015-07-21 10:26:49 +08:00
parent 8121e4942b
commit a040b1c181
1 changed files with 1 additions and 1 deletions

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)