ChannelBuffer lifetime with respect to pipeline
satish
satish at cs.wisc.edu
Sat Sep 24 14:47:04 EDT 2011
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.
More information about the netty-users
mailing list