Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: larger default websockets frame size #1239

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading