MultiplexerConfig constructor
const
MultiplexerConfig({
- int maxStreams = 1000,
- int initialStreamWindowSize = 256 * 1024,
- int maxStreamWindowSize = 16 * 1024 * 1024,
- int maxFrameSize = 16 * 1024,
- Duration streamReadTimeout = const Duration(seconds: 30),
- Duration streamWriteTimeout = const Duration(seconds: 30),
- Duration keepAliveInterval = const Duration(seconds: 10),
- Duration connectionReadTimeout = const Duration(seconds: 35),
Implementation
const MultiplexerConfig({
this.maxStreams = 1000,
this.initialStreamWindowSize = 256 * 1024, // 256KB
this.maxStreamWindowSize = 16 * 1024 * 1024, // 16MB
this.maxFrameSize = 16 * 1024, // 16KB - balances throughput vs resilience
this.streamReadTimeout = const Duration(seconds: 30),
this.streamWriteTimeout = const Duration(seconds: 30),
this.keepAliveInterval = const Duration(seconds: 10),
this.connectionReadTimeout = const Duration(seconds: 35), // 3.5x keepalive
});