From 8f9558ab30a1bde7a34ad5dfd297b1842f0c4269 Mon Sep 17 00:00:00 2001 From: Thomas Sunil Date: Mon, 15 Sep 2025 20:08:39 -0400 Subject: [PATCH] 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 --- framework/ssh/ssh_connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/ssh/ssh_connection.py b/framework/ssh/ssh_connection.py index 8f0c29ef..6f84c38e 100644 --- a/framework/ssh/ssh_connection.py +++ b/framework/ssh/ssh_connection.py @@ -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: