Skip to content

socket close does not follow streams #20755

Closed
@ronag

Description

@ronag

Not sure if this is a problem or not. But currently net.Socket doesn't quite follow the stream interface.

i.e., https://nodejs.org/api/net.html#net_event_close_1 says 'close' has an argument hadError which stream 'close' is not supposed to have. This can break some code that assumes that streams always emit 'close' without arguments.

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