Repository navigation
Plugin IPC: allow messages up to 1 GiB - #3477
Merged
HakanSeven12 merged 1 commit intoNov 23, 2026
Merged
Conversation
A full document snapshot of a large drawing (about 90 MB) exceeded the 64 MiB message limit, so every command of an out-of-process plugin failed with 'message too large' on such a drawing and the plugin stopped responding.
HakanSeven12
pushed a commit
that referenced
this pull request
Nov 23, 2026
With the 1 GiB cap (#3477) a frame header alone allocated the whole frame before any payload came. The receive paths now read into a buffer that grows by at most 16 MiB ahead of the data, and the texts that still said 64 MiB are updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013CaxngxnsGEAQ4V12YE1DP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The plugin IPC transport and proxy refuse messages larger than 64 MiB. A full document snapshot of a large drawing (about 90 MB, tens of thousands of entities) exceeds that, so on such a drawing every command of an out-of-process plugin fails with
message too largeand the plugin stops responding.The limit is raised to 1 GiB in both places. It still protects host and runner against a runaway or malicious peer.
Changes
ipc/transport.rs,ipc/proxy.rs:MAX_MESSAGE_SIZE= 1 GiB, doc comment updated.ipc/mod.rs: the oversized-message test now writes a frame header announcing 1 GiB + 1 MiB and checks thatrecvrefuses it before allocating, so the test does not need a 1 GiB buffer on the CI runners.Testing
cargo test -p ocs_plugin_api --features host --lib ipc::(57 passed).🤖 Generated with Claude Code