Skip to content

Commit b5f7a5a

Browse files
authored
Merge pull request #1239 from dimaqq/feat-larger-default-websockets-frame-size
#1239 Preempt and fix #1238 Avoid and fix #1237 Possibly address #1236
2 parents 773cda5 + 2082ad0 commit b5f7a5a

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)