RpcHeaderBoundedServerSocket constructor

RpcHeaderBoundedServerSocket(
  1. ServerSocket server, {
  2. int? maxHeaderBytes,
  3. Duration? headerTimeout,
  4. int? maxConnections,
})

Bounds the connections server accepts. Each bound is off when null.

Implementation

RpcHeaderBoundedServerSocket(
  ServerSocket server, {
  this.maxHeaderBytes,
  this.headerTimeout,
  this.maxConnections,
}) : _server = server;