Simplifying Netty application shutdown

tsuna tsunanet at gmail.com
Mon Jan 31 12:35:00 EST 2011


On Mon, Jan 31, 2011 at 12:26 AM, "이희승 (Trustin Lee)" <trustin at gmail.com> wrote:
> The two proposed changes above seems to me like more sensible default to
> me, and I'd like to implement them in 4.0 real soon.  Any feed back is
> appreciated.

Yeah that would be awesome.  Right now calling
releaseExternalResources() on the channel factory is a PITA,
especially because you have to call it from a non-Netty-IO thread.
Right now I always have to start a new thread just to call
releaseExternalResources() because I often don't know whether I'm
currently trying to shutdown from a Netty-IO thread or not.  I wish
Netty could do this automagically for me when it's needed.

Although I don't use ChannelGroup, I think simplifying its interface
is a good thing.

-- 
Benoit "tsuna" Sigoure
Software Engineer @ www.StumbleUpon.com



More information about the netty-users mailing list