Ejemplo n.º 1
0
        static void ReadGoAwayFrame(IChannelHandlerContext ctx, IByteBuffer payload, int payloadEndIndex, IHttp2FrameListener listener)
        {
            int         lastStreamId = Http2CodecUtil.ReadUnsignedInt(payload);
            var         errorCode    = (Http2Error)payload.ReadUnsignedInt();
            IByteBuffer debugData    = payload.ReadSlice(payloadEndIndex - payload.ReaderIndex);

            listener.OnGoAwayRead(ctx, lastStreamId, errorCode, debugData);
        }
Ejemplo n.º 2
0
 public virtual void OnGoAwayRead(IChannelHandlerContext ctx, int lastStreamId, Http2Error errorCode, IByteBuffer debugData)
 {
     _listener.OnGoAwayRead(ctx, lastStreamId, errorCode, debugData);
 }
Ejemplo n.º 3
0
 public void OnGoAwayRead(IChannelHandlerContext ctx, int lastStreamId, Http2Error errorCode, IByteBuffer debugData)
 {
     _logger.LogGoAway(Direction.Inbound, ctx, lastStreamId, errorCode, debugData);
     _listener.OnGoAwayRead(ctx, lastStreamId, errorCode, debugData);
 }