From 2082ad09a09f4b559711b390e360345dfd01981d Mon Sep 17 00:00:00 2001 From: Dima Tisnek Date: Fri, 6 Dec 2024 15:05:03 +0900 Subject: [PATCH] feat: larger default websockets frame size --- juju/client/connection.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/juju/client/connection.py b/juju/client/connection.py index 03eb50961..b06c81cbc 100644 --- a/juju/client/connection.py +++ b/juju/client/connection.py @@ -108,8 +108,10 @@ class Connection: """ - MAX_FRAME_SIZE = 2**22 - "Maximum size for a single frame. Defaults to 4MB." + # Juju 3.6 is limited by MongoDB transaction size limit, 16MB of BSON. + # Set the jRPC receive limit to 64MB of JSON to account for formatting differences. + MAX_FRAME_SIZE = 0x4_000_000 + "Maximum size for a single frame, 64MB." facades: dict[str, int] _specified_facades: dict[str, Sequence[int]] bakery_client: Any