Skip to content

fix(ports): bound IPC connect and close (review on #1052) - #3

Merged
leonardoxr merged 1 commit into
mainfrom
fix/windows-named-pipe
Oct 30, 2026
Merged

leonardoxr merged 1 commit into
mainfrom
fix/windows-named-pipe

Conversation

@leonardoxr

Copy link
Copy Markdown
Owner

CodeRabbit review fixes for callstackincubator#1052: bounded IPC connect and close, plus the Windows pipe security note in the daemon manual.

`daemon stop` probes a Windows pipe by connecting and closing until
nothing answers. `NodeIpcTransport.connect` had no timeout, and
`close()` waited for the socket's `close`, which never comes when the
peer keeps its end open, so the loop could miss its 300 s deadline.
Connecting now gives up after 10 s, and `close()` destroys the socket
2 s after ending it. Both are adapter options for tests.

The daemon manual records what guards the pipe on Windows, and the
squatting gap its predictable name leaves on a shared machine.

Addresses CodeRabbit review on callstackincubator#1052.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@leonardoxr
leonardoxr merged commit be2dfb3 into main Oct 30, 2026
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.

1 participant