Skip to content

Http2Limits

Http2Limits = object

Defined in: packages/net-http/src/h2/http2-limits.ts:5

The limits one HTTP/2 endpoint sets for its peer. Every one bounds a cost the peer can drive, so none has a default.

readonly connectionWindowSize: number

Defined in: packages/net-http/src/h2/http2-limits.ts:25

Bytes the peer may send on the whole connection before they are acknowledged, at least 65 535. Acknowledged as they arrive, so this sets throughput rather than memory.


readonly maxConcurrentStreams: number

Defined in: packages/net-http/src/h2/http2-limits.ts:11

Streams the peer may have open at once (SETTINGS_MAX_CONCURRENT_STREAMS). A server’s real concurrency limit; a client advertises it too, but its peer opens no streams since push is disabled.


readonly maxControlFramesPerSecond: number

Defined in: packages/net-http/src/h2/http2-limits.ts:33

Frames per second that cost work without carrying a request — RST_STREAM, PING, SETTINGS, empty DATA, refused streams — before the connection is closed with ENHANCE_YOUR_CALM. The guard against rapid-reset and ping floods.


readonly streamWindowSize: number

Defined in: packages/net-http/src/h2/http2-limits.ts:18

Bytes the peer may send on one stream before it is read (SETTINGS_INITIAL_WINDOW_SIZE), at least 65 535: what one stream buffers at most.