Skip to content

perf(extensions): bound JSON-RPC payload size (#419) - #434

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/419-rpc-payload-bounds
Jul 27, 2026
Merged

perf(extensions): bound JSON-RPC payload size (#419)#434
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/419-rpc-payload-bounds

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • boundedUtf8LineSplitter + JsonRpcPayloadTooLargeException (default 32 MiB/line)
  • Large lines (>64 KiB) jsonDecode via Isolate.run
  • ExtensionDriverSession.query always sends Preferences row limit
  • Extension SQL workspace shows capped status; docs in tz-block-c-rpc-bridge.md

Closes #419
Parent: #414

Test plan

  • flutter test test/core/extensions/rpc/json_rpc_stdio_client_test.dart test/core/extensions/rpc/plugin_rpc_bridge_test.dart
  • Manual: extension driver query with high row cap still works

Fail closed when a plugin stdout line exceeds 32 MiB, decode large
lines off the UI isolate, always send db.query limit from Preferences,
and document host payload limits for driver authors.

Closes #419
@github-actions github-actions Bot added performance Theme parser epic label: performance marketplace Extensions marketplace, ExtensionManifest core Core library logic and services labels Jul 27, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit d9b9207 into dev Jul 27, 2026
4 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/419-rpc-payload-bounds branch July 27, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core library logic and services marketplace Extensions marketplace, ExtensionManifest performance Theme parser epic label: performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant