Skip to content

Retry a busy Named Pipe when opening the lazy gRPC channel on Windows - #4254

Merged
mstomar125 merged 1 commit into
mainfrom
issue-4251-pipe-busy
Nov 6, 2026
Merged

mstomar125 merged 1 commit into
mainfrom
issue-4251-pipe-busy

Conversation

@mstomar125

Copy link
Copy Markdown
Contributor

Summary

  • The lazy Windows pipe channel now opens the pipe through open_pipe_when_free (after the startup hold), so it waits out ERROR_PIPE_BUSY with the same bound as the eager channel instead of failing and relying on the caller's retry.
  • The connector body is factored into open_pipe_after_hold so it can be tested directly.
  • New Windows test lazy_pipe_open_retries_a_busy_pipe takes the only pipe instance, asserts a plain open returns ERROR_PIPE_BUSY, then asserts the connector succeeds once the next instance appears 300 ms later.

Verification

Run on a Windows PC against the real code lifted from this branch (the app-lib test binary does not start there); the test passes with the fix and fails with ERROR_PIPE_BUSY (os error 231) when the fix is reverted.

Fixes #4251

🤖 Generated with Claude Code

The lazy channel's connector now opens the pipe through open_pipe_when_free
after the startup hold, so it waits out ERROR_PIPE_BUSY like the eager
channel. A Windows test holds the only pipe instance busy and asserts the
connector succeeds once the next instance appears.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@mstomar125
mstomar125 force-pushed the issue-4251-pipe-busy branch from 1671aa6 to 54fff9a Compare November 6, 2026 07:20
@mstomar125
mstomar125 merged commit ff101bc into main Nov 6, 2026
@mstomar125
mstomar125 deleted the issue-4251-pipe-busy branch November 6, 2026 07:20
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.

Windows: the lazy Named Pipe channel does not retry a busy pipe

1 participant