Skip to content

Streaming support for JsonRpcServer#4875

Closed
RaoulSchaffranek wants to merge 2459 commits intodevelopfrom
raoul/rpc-streaming
Closed

Streaming support for JsonRpcServer#4875
RaoulSchaffranek wants to merge 2459 commits intodevelopfrom
raoul/rpc-streaming

Conversation

@RaoulSchaffranek
Copy link
Member

This PR extends the JsonRpcServer with support for streaming.
JsonRpcMethods can now return a stream of bytes (Iterator[bytes]) instead of a JSON-serializable value.
The method must ensure that the produced stream is already JSON-encoded, as no extra validation is performed.
This allows us to transfer large responses without buffering the entire response in memory.

This is needed by the kontrol-node, when transferring large execution traces.

@rv-jenkins rv-jenkins changed the base branch from master to develop October 30, 2025 00:12
@RaoulSchaffranek
Copy link
Member Author

Closing and reopening in #4877
I messed up the git history in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants