Skip to content

Conversation

@mszabo-wikia
Copy link
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
Contributor

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

@meta-codesync
Copy link

meta-codesync bot commented Dec 4, 2025

@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.)

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 7ef2280 to 0a42245 Compare December 10, 2025 11:26
@facebook-github-bot
Copy link
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