BuildDocsReferenceGuidesBlogDiscordnode:httpServerrequestTimeoutBuildDocsReferenceGuidesBlogDiscordnode:httpServerrequestTimeouthttp.Server.requestTimeoutrequestTimeoutReferenceDocsGuidesDiscordMerch StoreGitHubBlogRuntimePackage managerTest runnerBundlerPackage runnerBun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseWe're hiring →
Server.requestTimeout property | Node.js http module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- Sets the timeout value in milliseconds for receiving the entire request from
the client.
If the timeout expires, the server responds with status 408 without
forwarding the request to the request listener and then closes the connection.
It must be set to a non-zero value (e.g. 120 seconds) to protect against
potential Denial-of-Service attacks in case the server is deployed without a
reverse proxy in front.