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.

socket.setNoDelay documentation is contradictory #8929

@natevw

Description

@natevw

socket.setNoDelay documentation says:

socket.setNoDelay([noDelay])

Disables the Nagle algorithm. By default TCP connections use the Nagle algorithm, they buffer data before sending it off. Setting true for noDelay will immediately fire off data each time socket.write() is called. noDelay defaults to true.

"By default TCP connections use the Nagle algorithm" … "noDelay defaults to true" — these say opposite things. Is data buffered by default (Nagle's algorithm) or is the underlying TCP_NODELAY overrided really defaulting to "on"?

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