181182183184185186187188189190191
sb.childHandler(new ChannelInitializer<SocketChannel>() { @Override public void initChannel(SocketChannel channel) throws Exception { channel.pipeline().addLast( new SpdyFrameCodec(version), sh); } }); cb.handler(ch);