diff --git a/app/meshcore/cli.py b/app/meshcore/cli.py index 0eb4ae7..de46574 100644 --- a/app/meshcore/cli.py +++ b/app/meshcore/cli.py @@ -43,6 +43,7 @@ def _run_command(args: list, timeout: int = DEFAULT_TIMEOUT) -> Tuple[bool, str, 'args': args, 'timeout': timeout }, + headers={'Connection': 'close'}, # Prevent connection reuse issues in background threads timeout=timeout + 5 # Add 5s buffer for HTTP timeout )