Increase buffer size for larger outputs
- for swanctl list-sa the o/p could be large so need to increase this buffer size Change-Id: I9ce9513fb39528ade9d0d9c9dbae45f5e9bc1269 Signed-off-by: Thomas Sunil <sunil.thomas@windriver.com>
This commit is contained in:
@@ -394,8 +394,8 @@ class SSHConnection:
|
||||
get_logger().log_warning("SSH output read timed out — buffer may be incomplete or prompt unmatched.")
|
||||
return -1, "Timeout Exceeded"
|
||||
|
||||
# Read some of the output
|
||||
current_buffer = ssh_channel.recv(1024)
|
||||
# Read some of the output - increased buffer size for large outputs
|
||||
current_buffer = ssh_channel.recv(8192)
|
||||
|
||||
# If we have an empty buffer, then the SSH session has been closed
|
||||
if len(current_buffer) == 0:
|
||||
|
Reference in New Issue
Block a user