when Netty Chanel acitve change to inActive

1,224 views
Skip to first unread message

you fu

unread,
Apr 2, 2014, 1:14:14 AM4/2/14
to ne...@googlegroups.com
In my program:
     the hander: 
  publc class NettyConnetManageHandler extends ChannelHandlerAdapter {
        public void channelInactive(ChannelHandlerContext ctx) throws Exception
         log.info(LogPrefix + " NETTY  PIPELINE: channelInactive, the channel" + RemotingUtils.getAddrString(ctx.channel().remoteAddress()));
          ctx.fireChannelInactive();
}

the log not apperar the inactive log,but the chanel.isActive return false ?
why?


Norman Maurer

unread,
Apr 2, 2014, 7:48:10 AM4/2/14
to ne...@googlegroups.com, you fu
That is strange. Can you give more details or even some reproducer ?
-- 
Norman Maurer

JBoss, by Red Hat

--

---
You received this message because you are subscribed to the Google Groups "Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netty+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

you fu

unread,
Apr 2, 2014, 9:55:03 PM4/2/14
to ne...@googlegroups.com, you fu
@Norman i can't reproducer now 

you fu

unread,
Apr 2, 2014, 11:06:47 PM4/2/14
to ne...@googlegroups.com, you fu
I want to know when chanel become inactive 
the chanel is close ?or something others?
thanks!

you fu

unread,
Apr 2, 2014, 11:27:56 PM4/2/14
to ne...@googlegroups.com, you fu
in my scene:
the client process is close.
the Netty Server receive :java.io.IOException: Connection reset by peer
but I debug and check chanel status,the Chanel status is active,not inactive I expect .

you fu

unread,
Apr 3, 2014, 1:10:15 AM4/3/14
to ne...@googlegroups.com, you fu
the detail see picture.
QQ20140403-2@2x.png
Reply all
Reply to author
Forward
0 new messages