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); }
public virtual void OnGoAwayRead(IChannelHandlerContext ctx, int lastStreamId, Http2Error errorCode, IByteBuffer debugData) { _listener.OnGoAwayRead(ctx, lastStreamId, errorCode, debugData); }
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); }