ChannelBuffer lifetime with respect to pipeline

Norman Maurer norman.maurer at googlemail.com
Mon Sep 26 10:31:54 EDT 2011


Hi there,

there is no Channelbuffer pooling as far as I know.

See also:
http://docs.jboss.org/netty/3.2/xref/org/jboss/netty/buffer/ChannelBuffers.html

Bye,
Norman


2011/9/24 satish <satish at cs.wisc.edu>:
> hello
>
> Does netty reuse ChannelBufffer to parse multpile packets? My application
> has netty workers as producer - As packets arrive through network, netty
> worker adds the packet to a queue. Note that the queue contains the (sliced
> view of required contents of) same buffer that goes through FrameDecoder and
> rest of pipeline and i am not making any copies of data. Application threads
> process data from queue. I am seeing a strange behavior in that i am getting
> incorrect data on couple packets after the program runs for about 4-5hours.
> If i store copied buffer in queue instead of same buffer that netty passes i
> do not see the issue.
>
> So i am wondering if the channelbuffers are reused? Or are they disposed
> after they go out of context of pipeline (Note that the application threads
> are not part of pipeline)? if buffers are reused, is there a disable this
> using configuration?
>
> i am using netty 3.2.
>
> Thanks
>
>
> --
> View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/ChannelBuffer-lifetime-with-respect-to-pipeline-tp6827676p6827676.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