BuildDocsReferenceGuidesBlogDiscordnode:http2ClientSessionOptionsmaxSessionMemoryBuildDocsReferenceGuidesBlogDiscordnode:http2ClientSessionOptionsmaxSessionMemoryhttp2.ClientSessionOptions.maxSessionMemorymaxSessionMemoryReferenceDocsGuidesDiscordMerch StoreGitHubBlogRuntimePackage managerTest runnerBundlerPackage runnerBun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseWe're hiring →
property maxSessionMemory | Node.js http2 module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- Sets the maximum memory that the `Http2Session` is permitted to use.
The value is expressed in terms of number of megabytes, e.g. `1` equal 1 megabyte.
The minimum value allowed is `1`.
This is a credit based limit, existing `Http2Stream`s may cause this limit to be exceeded,
but new `Http2Stream` instances will be rejected while this limit is exceeded.
The current number of `Http2Stream` sessions, the current memory use of the header compression tables,
current data queued to be sent, and unacknowledged `PING` and `SETTINGS` frames are all counted towards the current limit.