也不是系统学习,工作需求,一点点抠的,需要自己笼统学习下. 首先功能实现: serverBootstrap.group(boss, work).channel(NioServerSocketChannel.class) .option(ChannelOption.SO_BACKLOG, nettyConfig.getBacklog()) .option(ChannelOption.SO_KEEPALIVE, true) .option(ChannelOption.ALLOCATOR, Poole…