Skip to content

socket.connecting is false before calling the connect listener #25328

Closed
@szmarczak

Description

@szmarczak
  • Version: v11.6.0
  • Platform: Ubuntu 18.10
  • Subsystem: net

According to the docs:

socket.connecting
[...] Will be set to true before emitting 'connect' event and/or calling socket.connect(options[, connectListener])'s callback.

I don't think socket.connecting should be false before emitting the connect event.

Demo: https://runkit.com/szmarczak/5c2e555cc7b0160012352b15

It breaks for example http-timer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions