Skip to content

Commit

Permalink
Merge pull request #1239 from dimaqq/feat-larger-default-websockets-f…
Browse files Browse the repository at this point in the history
…rame-size

#1239

Preempt and fix #1238
Avoid and fix #1237 
Possibly address #1236
  • Loading branch information
jujubot authored Dec 9, 2024
2 parents 773cda5 + 2082ad0 commit b5f7a5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions juju/client/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5f7a5a

Please sign in to comment.