title: Netty: What is the process lifecycle of a channel in netty?
body: <p>I am learning Netty recently. I have encountered a problem that is I put a BlockingQueue in ChannelInboundHandler.channelActive method.</p>
  
  <p>Aimed at that I want to get message from BlockingQueue and then send the message to the channel, but the fact is that only one message is sent to the server.
  Here is the code below:</p>
  
  <pre><code>@Override
  public void channleActive(ChannelHandlerContext ctx) throws Exception{
     String msg = null;
     while(true){
        msg=msgQueue.take();
        ctx.writeAndFlush(Unpooled.copiedBuffer(msg, CharsetUtil.UTF_8));
     }
  }
  </code></pre>
  
  <p>But it doesn't work, I get only one response from the <code>channelRead()</code> method.
  Is my understanding of netty lifecycle wrong? Can someone help me and explain this?</p>