Close all open connections without delay
Johnny Luong
johnny.luong at trustcommerce.com
Wed Jun 9 14:11:08 EDT 2010
Hi Norman,
I think that if your defining your own pipeline via your own factory,
your handler needs to be added as part of the pipeline's construction
and not through an individual instance of the pipeline.
So before "return pipeline;" in your example, putting in addFirst(...,
...) would do as you intended.
-Johnny
Norman Maurer wrote:
> Hi Trustin,
>
> I just filled a Bugreport. I can reproduce it with a really small java
> class. See
>
> https://jira.jboss.org/browse/NETTY-324
>
> Thx,
> Norman
>
>
> 2010/6/7 "Trustin Lee (이희승)" <trustin at gmail.com>:
>> Hi Norman,
>>
>> That is weird. When you call ChannelGroup.close(), it merely calls
>> close() on all sockets immediately. Could you post the full thread dump
>> of the application when it hangs?
>>
>> Thanks,
>> Trustin
>>
>> Norman Maurer wrote:
>>> Hi all,
>>>
>>> I need to close all open channels when shutdown the server. I tried to
>>> use ChannelGroup the same way as it is descripted in javadocs. The
>>> problem is when I try to "force" to close all open channels via
>>> ChannelGroup.close().await...(); it hangs till I press "enter" on the
>>> terminal where I simulate the client via telnet.
>>>
>>> Thats a problem I really need to be sure that it close asap.
>>>
>>> Any ideas ?
>>>
>>> Bye,
>>> Norman
>>> _______________________________________________
>>> netty-users mailing list
>>> netty-users at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/netty-users
>> --
>> what we call human nature in actuality is human habit
>> http://gleamynode.net/
>>
>> _______________________________________________
>> netty-users mailing list
>> netty-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/netty-users
>>
>
> _______________________________________________
> 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