Re: Strange problem in reading the data on socket in ProtocolDecoder

2011-10-13 Thread Emmanuel Lécharny
On 10/13/11 12:25 PM, Vishal Gupta wrote: Thanks a ton. I guess that was the problem. I have moved it to the last, my decoder is not expensive either in terms of processing or expected data size. I remember adding Executor was done because I read somewhere... to solve the problem to support mor

RE: Strange problem in reading the data on socket in ProtocolDecoder

2011-10-13 Thread Vishal Gupta
harny [mailto:elecha...@apache.org] Sent: Thursday, October 13, 2011 2:57 PM To: users@mina.apache.org Subject: Re: Strange problem in reading the data on socket in ProtocolDecoder On 10/13/11 10:18 AM, Vishal Gupta wrote: > Dear Emmanuel, > > Thanks for prompt reply. Please see my c

Re: Strange problem in reading the data on socket in ProtocolDecoder

2011-10-13 Thread Emmanuel Lécharny
: Re: Strange problem in reading the data on socket in ProtocolDecoder On 10/13/11 6:58 AM, Vishal Gupta wrote: Scenraio: - A server is sending data to the MINA server which has implemented "CumulativeProtocolDecoder" - Server is sending x byt

RE: Strange problem in reading the data on socket in ProtocolDecoder

2011-10-13 Thread Vishal Gupta
Dear Emmanuel, Thanks for prompt reply. Please see my comments inline. Best Regards, Vishal -Original Message- From: Emmanuel Lecharny [mailto:elecha...@gmail.com] Sent: Thursday, October 13, 2011 12:07 PM To: users@mina.apache.org Subject: Re: Strange problem in reading the data on

Re: Strange problem in reading the data on socket in ProtocolDecoder

2011-10-12 Thread Emmanuel Lecharny
On 10/13/11 6:58 AM, Vishal Gupta wrote: Scenraio: - A server is sending data to the MINA server which has implemented "CumulativeProtocolDecoder" - Server is sending x bytes - While getting data first thread is getting data from position m instead of pos