ChannelHandlerContext attachment
"이희승 (Trustin Lee)"
trustin at gmail.com
Wed Nov 10 21:32:26 EST 2010
Yeah I would clean it up at channelClosed() and implement
LifeCycleAwareChannelHandler additionally.
HTH
Marc-André Laverdière wrote:
> Have you tried SimpleChannelHandler.channelDisconnected or
> SimpleChannelHandler.childChannelClosed ?
>
> Marc-André LAVERDIÈRE
> "Perseverance must finish its work so that you may be mature and
> complete, not lacking anything." -James 1:4
> mlaverd.theunixplace.com/blog
>
> /"\
> \ / ASCII Ribbon Campaign
> X against HTML e-mail
> / \
>
>
>
> 2010/8/26 mrochon <mattrochon at gmail.com>:
>> Hi Trustin,
>>
>> I use the context attachment to store small per-handler stateful
>> information. I'm wondering about the cleanup strategy on those attachments,
>> since some of my attachments need to be explicitly cleaned up.
>>
>> In particular I am using it to store a ZStream object which needs to be
>> inflateEnd()'ed and free()'ed when the channel is no longer open.
>>
>> Is there a cleanup facility on these or should I switch to a channelLocal
>> and clean it up elsewhere?
>> --
>> View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/ChannelHandlerContext-attachment-tp5466436p5466436.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
>>
>
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
--
Trustin Lee - http://gleamynode.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 290 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20101111/f07fdec8/attachment.bin
More information about the netty-users
mailing list