Пример #1
0
 public Http2Connection(Http2ConnectionContext context)
 {
     _context      = context;
     _frameWriter  = new Http2FrameWriter(context.Transport.Output, context.ConnectionContext, _outputFlowControl, this, context.ConnectionId, context.ServiceContext.Log);
     _hpackDecoder = new HPackDecoder((int)_serverSettings.HeaderTableSize);
     _serverSettings.MaxConcurrentStreams = (uint)context.ServiceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection;
 }
 public Http2Connection(Http2ConnectionContext context)
 {
     _context      = context;
     _frameWriter  = new Http2FrameWriter(context.Transport.Output, context.Application.Input, _outputFlowControl, this);
     _hpackDecoder = new HPackDecoder((int)_serverSettings.HeaderTableSize);
 }