Strange bug; where to start looking?
jgalyan
jgalyan at adbrite.com
Thu Jan 6 13:09:36 EST 2011
I have a strange bug that I'm sure is due to something I've done wrong, and
I'm not sure where to look for possible causes. The behavior I'm seeing is,
for each request I send to my Netty-based server, my handler code gets
called twice. In my handler code, I then send an outbound request to a
memcached server, which results in my handler code getting called twice
again for each (with my bug), for a total of four additional iterations
through the code. So, to clarify, what I intended is:
Inbound request----->My server
+--------->Outbound request<-------->memcached
What I'm seeing is:
Inbound request------->My server
+---------->Outbound request<-------->memcached
+---------->Outbound request<-------->memcached
My server
+---------->Outbound request<-------->memcached
+---------->Outbound request<-------->memcached
I'm using a ReplayingDecoder in my client pipeline (the part that handles
responses from memcached), since we're chunking our data, and responses are
usually too big to fit in one packet. I don't think this is the problem,
though, because the client pipeline doesn't invoke the server pipeline, and
I'm seeing the server pipeline getting invoked twice for each incoming
request. Anyone have any thoughts on where I should start looking for my
bug?
--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Strange-bug-where-to-start-looking-tp5896538p5896538.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list