-
-
Notifications
You must be signed in to change notification settings - Fork 37.7k
net: pending socket re-use #30832
Copy link
Copy link
Closed as not planned
Labels
netIssues and PRs related to the net subsystem.Issues and PRs related to the net subsystem.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
Description
Activity
Metadata
Metadata
Assignees
Labels
netIssues and PRs related to the net subsystem.Issues and PRs related to the net subsystem.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
It looks like
net.Socketinstances are intended to be re-used however while reading through the code I spot some potential problems:_destroy(): doesn't wait for connect to finishconnect: doesn't first destroy if already connected, before connecting againconnect: doesn't wait for pending destroy to finish, before calling e.g._undestroy()Not sure if these are actual problems that need to be fixed?
@mcollina