Repository navigation
Retry a busy Named Pipe when opening the lazy gRPC channel on Windows - #4254
Merged
Merged
Conversation
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
force-pushed
the
issue-4251-pipe-busy
branch
from
November 6, 2026 07:20
1671aa6 to
54fff9a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
open_pipe_when_free(after the startup hold), so it waits outERROR_PIPE_BUSYwith the same bound as the eager channel instead of failing and relying on the caller's retry.open_pipe_after_holdso it can be tested directly.lazy_pipe_open_retries_a_busy_pipetakes the only pipe instance, asserts a plain open returnsERROR_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