Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

net: socket options ignored before connect #8572

@mscdex

Description

@mscdex

Currently if you try setting socket options (e.g. via socket.setKeepAlive()) on a new TCP socket before calling socket.connect(), the arguments are silently ignored.

To avoid confusion about this I suggest two separate solutions:

  • Throw an error if no handle is created yet
  • Save the arguments on the socket object for applying after a handle is created

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions