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.
property
http2.SecureServerSessionOptions.maxSessionMemory
maxSessionMemory?: number