温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/net/Socket/setNoDelay
点击访问原文链接

Socket.setNoDelay method | Node.js net module | Bun

Socket.setNoDelay method | Node.js net module | BunBuildDocsReferenceGuidesBlogDiscord/node:net/Socket/setNoDelayMsetNoDelay

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:net/Socket/setNoDelayMsetNoDelay

method

net.Socket.setNoDelaysetNoDelay(noDelay?: boolean): this;Enable/disable the use of Nagle's algorithm.

When a TCP connection is created, it will have Nagle's algorithm enabled.

Nagle's algorithm delays data before it is sent via the network. It attempts to optimize throughput at the expense of latency.

Passing true for noDelay or not passing an argument will disable Nagle's algorithm for the socket. Passing false for noDelay will enable Nagle's algorithm.

@returnsThe socket itself.

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco

We're hiring →

智能索引记录