tailcat: make Server.Close and Client.Close idempotent - #9
Closed
awdemos wants to merge 1 commit into
Closed
Conversation
Close on either side could be called more than once, especially from multiple cleanup paths. The underlying Engine.Close and NetMon.Close are not documented as safe to call repeatedly, so a second Close could panic or return an error. Guard both with a sync.Once so the second and subsequent calls are harmless no-ops. Add TestDoubleClose to verify that repeated Close calls on a started Server and Client do not fail. Updates tailscale/tailcat (adversarial audit).
Member
|
Your new What is this actually fixing? |
Member
|
You've burned my trust at this point sending a bunch of PRs that do nothing and have no tests (or have a test that already passed without your change) and don't have a corresponding issue or even a description of what the problem was. So I'm going to close this. If a human wants to tell me what the problem is, then we can fix it. We can even fix it with AI, but we need to know what we're fixing and verify it actually fixes it, first. |
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.
Close on either side could be called more than once, especially from multiple cleanup paths. The underlying Engine.Close and NetMon.Close are not documented as safe to call repeatedly, so a second Close could panic or return an error. Guard both with a sync.Once so the second and subsequent calls are harmless no-ops.
Add TestDoubleClose to verify that repeated Close calls on a started Server and Client do not fail.