What is the best way to close channels on the server side?

41 views
Skip to first unread message

孙佩

unread,
Sep 21, 2016, 1:33:10 AM9/21/16
to ne...@googlegroups.com
Hi Netty users,
    I have a couple of questions about how netty deals with channel close.
 
    1. On the client side, I use channel pool. On the server side, how should I close the channel when the channel on the client side is closed? If I don't close, will there be any resource leak?
     2. If the client's machine is turned down without closing and I don't have any mechanism on the server side to ping client periodically, will there be resource leak (or connection leak)? 

Thanks a lot.
Pei

PS

unread,
Sep 26, 2016, 2:03:07 PM9/26/16
to Netty discussions

Hi,
    Can anyone help me on these questions?
Thanks

Pei
Reply all
Reply to author
Forward
0 new messages