mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-10 10:33:01 +00:00
Update connect.py
fix cpu used 100%
This commit is contained in:
parent
8121e4942b
commit
a040b1c181
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user