Repository navigation
test: skip a loopback port a plain TCP socket holds - #963
Merged
Merged
Conversation
Blind-Striker
force-pushed
the
fix/956-listener-port-held-by-tcp
branch
from
November 22, 2026 10:05
a8b1f70 to
9838741
Compare
Blind-Striker
marked this pull request as ready for review
November 22, 2026 10:05
Merged
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.
📝 Description
What does this PR do?
The loopback upgrade listener used by the client-hosted MCP and terminal tests reserves a free port, releases it, and then registers an HTTP.sys prefix. On Windows it retried the next reserved port only for error 183, an HTTP.sys prefix conflict. If a plain TCP socket took the port between those steps,
HttpListener.Startfailed with error 32 (ERROR_SHARING_VIOLATION), and the test that needed the listener failed.Tests only: no production code changes.
Related Issue(s):
Closes #956
🔄 Type of Change
🎯 Protocol & API Surface
spec/) is untouchedexternal/was hand-edited🧪 Testing
HttpListenerException: The process cannot access the file because it is being used by another process.✅ Completion Gate
quality-gates.mdpasses on the head rebased ontomaster: whitespace, format/style, clones, slopwatch, the release build, all test projects, the API snapshots,generate --verify, the fixed point, Extensions and Native AOT.✅ Code Quality Checklist
🔍 Additional Notes
Breaking Changes: none. Dependencies: none. CHANGELOG: none; tests only.