http2-auto-window-size
v0.1.2
Published
[![NPM version](https://img.shields.io/npm/v/http2-auto-window-size?color=%23cb3837&style=flat-square)](https://www.npmjs.com/package/http2-auto-window-size) [![Repository package.json version](https://img.shields.io/github/package-json/v/vilicvane/http2-
Downloads
3
Readme
http2-auto-window-size
Set HTTP/2 window size automatically based on estimated bandwidth and ping duration (RTT).
Strategy
- tolerable latency -> increase window size if bandwidth is high.
- 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.