Graceful shutdown

Norman Maurer norman.maurer at googlemail.com
Mon Jun 20 06:04:40 EDT 2011


As far as I can tell this will not close it "immediately. It will just
close all channels in an async fashion. It calls Channel.close() which
in fact is async.

See:
http://docs.jboss.org/netty/3.2/api/org/jboss/netty/channel/Channel.html#close%28%29

Bye,
Norman


2011/6/20 Liche <alistair.braden at nominet.org.uk>:
>
> Norman Maurer-2 wrote:
>>
>> You should use a ChannelGroup for shutdown all channels:
>>
>
> Thanks - I had tried that. As far as I can see ChannelGroup.close() closes
> all of the channels immediately, so if there is a message currently being
> processed (e.g. waiting for a database operation to complete) then it will
> kill the channel and not send a reply. I am required to send a reply if the
> message has been processed. Or have I missed something?
>
> --
> View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Graceful-shutdown-tp6495032p6495190.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>


More information about the netty-users mailing list