Strange bug; where to start looking?

jgalyan jgalyan at adbrite.com
Thu Jan 6 15:24:36 EST 2011


Yeah, I found that I misunderstood how ReplayingDecoder works.  I had thought
that if I returned null after reading "END" (the end of the memcached
response), then ReplayingDecoder wouldn't get called back, so I was
returning the assembled value after checkpointing... and then my decoder got
called again and returned the assembled value again.  (I thought that
ReplayingDecoder only got called when more data arrived.  Apparently, I was
wrong.)  Changing my code to checkpoint and return null after reading "END"
functions as desired.
-- 
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Re-Strange-bug-where-to-start-looking-tp5896760p5897042.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list