mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-02 07:03:40 +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:
|
||||
try:
|
||||
x = chan.recv(1024)
|
||||
x = chan.recv(10240)
|
||||
if len(x) == 0:
|
||||
break
|
||||
sys.stdout.write(x)
|
||||
|
Loading…
Reference in New Issue
Block a user