Skip to content

vsdebug: Fix double-closing listener FDs - #9681

Open
mszabo-wikia wants to merge 1 commit into
facebook:masterfrom
mszabo-wikia:fix-vsdebug-listener-fd-close
Open

vsdebug: Fix double-closing listener FDs#9681
mszabo-wikia wants to merge 1 commit into
facebook:masterfrom
mszabo-wikia:fix-vsdebug-listener-fd-close

Conversation

@mszabo-wikia

Copy link
Copy Markdown
Contributor

While working on D88186184, I noticed that we were closing the listener FDs for the vsdebug server in both waitForConnection and listenForClientConnection. It does not seem to be causing issues in local testing but it could be a problem if the FD gets reused in a different thread in the meantime. waitForConnection is only called at the end of
listenForClientConnection so closing the FDs only at the end of listenForClientConnection should be fine.

@meta-cla meta-cla Bot added the CLA Signed label Dec 3, 2025
@mszabo-wikia
mszabo-wikia force-pushed the fix-vsdebug-listener-fd-close branch from cca9d9b to 7ef2280 Compare December 4, 2025 02:17
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@mszabo-wikia has updated the pull request. You must reimport the pull request before landing.

@meta-codesync

meta-codesync Bot commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this in D88280004. (Because this pull request was imported automatically, there will not be any future comments.)

@mszabo-wikia
mszabo-wikia force-pushed the fix-vsdebug-listener-fd-close branch from 7ef2280 to 0a42245 Compare December 10, 2025 11:26
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@mszabo-wikia has updated the pull request. You must reimport the pull request before landing.

@mszabo-wikia
mszabo-wikia force-pushed the fix-vsdebug-listener-fd-close branch from 0a42245 to a699035 Compare January 6, 2026 17:29
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@mszabo-wikia has updated the pull request. You must reimport the pull request before landing.

@mszabo-wikia
mszabo-wikia force-pushed the fix-vsdebug-listener-fd-close branch from a699035 to 7884dc8 Compare January 19, 2026 14:56
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@mszabo-wikia has updated the pull request. You must reimport the pull request before landing.

While working on D88186184, I noticed that we were closing the listener FDs
for the vsdebug server in both `waitForConnection` and `listenForClientConnection`.
It does not seem to be causing issues in local testing but it could be a
problem if the FD gets reused in a different thread in the meantime.
`waitForConnection` is only called at the end of
`listenForClientConnection` so closing the FDs only at the end of
`listenForClientConnection` should be fine.
@mszabo-wikia
mszabo-wikia force-pushed the fix-vsdebug-listener-fd-close branch from 7884dc8 to 4b0176b Compare March 4, 2026 16:13
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@mszabo-wikia has updated the pull request. You must reimport the pull request before landing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants