MultiplexerConfig constructor

const MultiplexerConfig({
  1. int maxStreams = 1000,
  2. int initialStreamWindowSize = 256 * 1024,
  3. int maxStreamWindowSize = 16 * 1024 * 1024,
  4. int maxFrameSize = 16 * 1024,
  5. Duration streamReadTimeout = const Duration(seconds: 30),
  6. Duration streamWriteTimeout = const Duration(seconds: 30),
  7. Duration keepAliveInterval = const Duration(seconds: 10),
  8. 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
});