Skip to content

vilicvane/http2-auto-window-size

Repository files navigation

NPM version Repository package.json version MIT License Discord

http2-auto-window-size

Set HTTP/2 window size automatically based on estimated bandwidth and ping duration (RTT).

Strategy

  1. tolerable latency -> increase window size if bandwidth is high.
  2. intolerable latency -> reduce window size if bandwidth is low.

Installation

npm install http2-auto-window-size

Usage

import {setupAutoWindowSize} from 'http2-auto-window-size';

server.on('session', session => setupAutoWindowSize(session));

License

MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published