Commit a040b1c1 authored by 蓝枫's avatar 蓝枫

Update connect.py

fix cpu used 100%
parent 8121e494
...@@ -131,7 +131,7 @@ def posix_shell(chan, username, host): ...@@ -131,7 +131,7 @@ def posix_shell(chan, username, host):
if chan in r: if chan in r:
try: try:
x = chan.recv(1024) x = chan.recv(10240)
if len(x) == 0: if len(x) == 0:
break break
sys.stdout.write(x) sys.stdout.write(x)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment