Skip to content

net: setKeepAlive options ignored before connect #31663

Open
@lgpasquale

Description

@lgpasquale
  • Version: v13.7.0
  • Platform: linux 5.5.2
  • Subsystem: net

If setKeepAlive() is called on a tcp socket before the connect event, then the initialDelay parameter is ignored.
This bug was alread reported here for version 0.12, but it still seems to be there in 13.7.

If, for instance, I call setKeepAlive(true, 10000) before the connect event, the default initialDelay of 7200s is used.
netstat -ntp --timers gives:

tcp        0      0 10.10.15.220:56866      10.10.15.148:6666       ESTABLISHED 132820/node          keepalive (7132.09/0/0)

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