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

Do not timeout on connecting to the server if waitForDebugger is set #6969

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

dibarbet
Copy link
Member

Hit a few people while debugging - the pipe connection would time out while debugging was on-going.

This modifies the socket connection code to not timeout if the waitForDebugger option is set. Also cleans up a bit of the code that handles unexpected process exit.

@dibarbet dibarbet requested a review from a team as a code owner March 13, 2024 22:20
@dibarbet dibarbet requested a review from Cosifne March 13, 2024 22:21

const connectionPromise = new Promise<net.Socket>((resolveConnection, rejectConnection) => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

created an overall connection promise to wrap the named pipe and socket connection steps. Allows me to move the child process on exit handling from the timeout promise to the connection promise

@dibarbet dibarbet merged commit 1e7e836 into dotnet:main Mar 13, 2024
13 checks passed
@dibarbet dibarbet deleted the debug_timeout branch March 13, 2024 23:42
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.

3 participants