抓到Netty一个Bug,聊一下Netty是如何高效接收网络连接的(七)
7.向SubReactorGroup中注册NioSocketChannelchildGroup.register(child).addListener(newChannelFutureListener(){OverridepublicvoidoperationComplete(ChannelFuturefuture)throwsException{if(!future.isSuccess()){forceClose(child,future.cause());}}});客户端NioSocketChannel向SubReactorGroup注册的流程完全和服务端NioServerSocketChannel向MainReactorGroup注册流程一样。关于服务端NioServerSocketChannel的注册流...