Skip to content

Close sync RPC connection after controller calls - #644

Merged
lippserd merged 1 commit into
mainfrom
close-sync-rpc-connection
Jul 2, 2026
Merged

Close sync RPC connection after controller calls#644
lippserd merged 1 commit into
mainfrom
close-sync-rpc-connection

Conversation

@lippserd

Copy link
Copy Markdown
Member

Synchronous controller RPC calls waited for the daemon response but left the underlying JSON-RPC socket open. ReactPHP kept the stream watcher registered, so the shutdown scheduler could block in stream_select() after the request had finished.

Close the daemon client in a finally block and document the RPC call contract.

Synchronous controller RPC calls waited for the daemon response but left the
underlying JSON-RPC socket open. ReactPHP kept the stream watcher registered,
so the shutdown scheduler could block in stream_select() after the request had
finished.

Close the daemon client in a finally block and document the RPC call contract.
@cla-bot cla-bot Bot added the cla/signed label Jun 30, 2026
@lippserd lippserd added this to the v1.8.5 milestone Jun 30, 2026
@lippserd
lippserd merged commit a504352 into main Jul 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant