Skip to content

net: pending socket re-use #30832

Open
Open
@ronag

Description

@ronag

It looks like net.Socket instances are intended to be re-used however while reading through the code I spot some potential problems:

  • _destroy(): doesn't wait for connect to finish
  • connect: doesn't first destroy if already connected, before connecting again
  • connect: 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    netIssues and PRs related to the net subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions