Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/murphymcquet/avoid spinlock pipe connect #283

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

murphymcquet-msft
Copy link

@murphymcquet-msft murphymcquet-msft commented Dec 18, 2024

Two bugs (https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2227577/ and https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1824420/) have been filed because the current implementation for connecting to the controller pipe only offers options to (1) spin indefinitely while waiting to connect or (2) exit immediately but throw a TimeoutException. Neither implementation is ideal. This was done because the existing .NET implementation for connecting to pipes "async" is not actually async. In the ideal scenario, we would simply wait and return to the caller without spinning or throwing an exception.

This PR implements an async version of the pipe connection by creating a wrapper around the Win32 APIs for pipe connection. This will not work on non-Windows machines, and has been implemented accordingly.

@murphymcquet-msft murphymcquet-msft marked this pull request as ready for review December 19, 2024 17:00
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.

2 participants