Skip to content

feat(tcp): make TCP_NODELAY the default #4890

@mxinden

Description

@mxinden

Description

Make TCP_NODELAY the default. In other words, disable Nagle's algorithm.

Rational of Golang setting TCP_NODELAY as default: golang/go#57530

Motivation

Trading low latency over throughput, especially when sending small messages.

Already our defacto default, see various examples using it: https://github.com/search?q=repo%3Alibp2p%2Frust-libp2p%20nodelay&type=code

Current Implementation

TCP_NODELAY is not the default.

nodelay: None,

Are you planning to do it yourself in a pull request ?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    decision-pendingMarks issues where a decision is pending before we can move forward.difficulty:easygetting-startedIssues that can be tackled if you don't know the internals of libp2p very wellhelp wanted

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions