private void _writeGoAway(long errorCode, int lastStreamId, ByteBuf debugData) { encoder().writeGoAway(chctx, lastStreamId, errorCode, debugData, chctx.newPromise()); chctx.flush(); }
private void _writeGoAway(long errorCode, int lastStreamId, ByteBuf debugData) { encoder().writeGoAway(chctx, lastStreamId, errorCode, debugData, chctx.newPromise()); chctx.flush(); }
@Override public CompletableFuture<Connection> writeGoAway(int lastStreamId, int errorCode, byte[] debugData) { return doInEventLoop((cf, channelPromise) -> { log.info("write goaway on connection {}, stream id: {}, size : {}", ctx.channel().id(), lastStreamId, debugData.length); cf.setResult(this); encoder.writeGoAway(ctx, lastStreamId, errorCode, Unpooled.wrappedBuffer(debugData), channelPromise); ctx.pipeline().flush(); }); }