Skip to content

Commit d93813a

Browse files
dimaqqEdmilsonRodrigues
authored andcommitted
feat: larger default websockets frame size
1 parent 7fc97cb commit d93813a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

juju/client/connection.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,10 @@ class Connection:
108108
109109
"""
110110

111-
MAX_FRAME_SIZE = 2**22
112-
"Maximum size for a single frame. Defaults to 4MB."
111+
# Juju 3.6 is limited by MongoDB transaction size limit, 16MB of BSON.
112+
# Set the jRPC receive limit to 64MB of JSON to account for formatting differences.
113+
MAX_FRAME_SIZE = 0x4_000_000
114+
"Maximum size for a single frame, 64MB."
113115
facades: dict[str, int]
114116
_specified_facades: dict[str, Sequence[int]]
115117
bakery_client: Any

0 commit comments

Comments
 (0)