[jira] Closed: (DIRMINA-436) DemuxingProtocolCodecFactory doesn't reset the current MessageDecoder when NOT_OK is returned.

2009-05-25 Thread Emmanuel Lecharny (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Emmanuel Lecharny closed DIRMINA-436. - DemuxingProtocolCodecFactory doesn't reset the current MessageDecoder when NOT_OK

Re: MessageDecoderResult.NEED_DATA in MessageDecoder#decode( )

2008-01-21 Thread Bogdan Ciprian Pistol
Hi Trustin Thanks for the info. I found out yesterday just what you've told me now in org.apache.mina.filter.codec.CumulativeProtocolDecoder#decode( ). Thanks for the confirmation. There is a bug in the http server codec example. If it receives more than one http message in a single tcp

[jira] Created: (DIRMINA-436) DemuxingProtocolCodecFactory doesn't reset the current MessageDecoder when NOT_OK is returned.

2007-09-13 Thread Trustin Lee (JIRA)
DemuxingProtocolCodecFactory doesn't reset the current MessageDecoder when NOT_OK is returned. -- Key: DIRMINA-436 URL: https://issues.apache.org/jira/browse/DIRMINA-436

[jira] Resolved: (DIRMINA-436) DemuxingProtocolCodecFactory doesn't reset the current MessageDecoder when NOT_OK is returned.

2007-09-13 Thread Trustin Lee (JIRA)
! DemuxingProtocolCodecFactory doesn't reset the current MessageDecoder when NOT_OK is returned. -- Key: DIRMINA-436 URL: https://issues.apache.org/jira/browse/DIRMINA-436

Re: MessageDecoder, decodable and the ByteBuffer

2007-06-19 Thread James Apfel
instance or rather if MINA takes care of resetting the ByteBuffer positions before passing it to the next MessageDecoder? The decoders share the ByteBuffer instance, but the position is always readjusted to make sure the side effect (i.e. unexpected behavior) of a certain message decoder. HTH

Re: MessageDecoder

2007-04-15 Thread Trustin Lee
On 4/16/07, mat [EMAIL PROTECTED] wrote: Thanks. My question is if it happens, will mina close the session? No, it won't. MINA closes the connection only when IOException is raised during I/O. HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP

Re: MessageDecoder

2007-04-12 Thread Trustin Lee
On 4/12/07, mat [EMAIL PROTECTED] wrote: Hi, If something wrong in the MessageDecoder decodeBody(unexpected exception happened with no handling by programmer), what will mina do? Automatically close the session? MINA will wrap the exception with ProtocolDecoderException, and throw

MessageDecoder

2007-04-11 Thread mat
Hi, If something wrong in the MessageDecoder decodeBody(unexpected exception happened with no handling by programmer), what will mina do? Automatically close the session? Thanks.

Re: A question about implementing MessageDecoder

2007-03-20 Thread Trustin Lee
am wrong. Thanks. Well, what decodable() is supposed to do is to determine if this MessageDecoder can decode the incoming data or not. Therefore, I think this separation is useful. Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6

Re: A question about implementing MessageDecoder

2007-03-20 Thread Trustin Lee
Hi, On 3/21/07, Coding Horse [EMAIL PROTECTED] wrote: Hi, Trustin, I really appreciate your wonderful explanation! Could you also shed some light on this case when you have time: When decodable() is called there are 3.5 complete packets of MyPacket, my decode() implementation will take out

Re: A question about implementing MessageDecoder

2007-03-20 Thread Coding Horse
://gleamynode.net/ -- PGP Key ID: 0x0255ECA6 -- View this message in context: http://www.nabble.com/A-question-about-implementing-MessageDecoder-tf3422797.html#a9586609 Sent from the mina dev mailing list archive at Nabble.com.

Re: A question about implementing MessageDecoder

2007-03-20 Thread Rodrigo Madera
. HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6 -- View this message in context: http://www.nabble.com/A-question-about-implementing-MessageDecoder-tf3422797.html#a9586609 Sent from the mina dev mailing list archive

Re: A question about implementing MessageDecoder

2007-03-19 Thread mat
the buffer's position/limit etc. before returning MessageDecoderResult.NEED_DATA? My get changed the buffer's position, right? thx a lot! -- View this message in context: http://www.nabble.com/A-question-about-implementing-MessageDecoder-tf3422797.html#a9540526 Sent from the mina dev mailing

Re: A question about implementing MessageDecoder

2007-03-19 Thread mat
Sorry about the mistake I made. But somehow decodable is not very neccessary. I can do everything in decode. If no enough packets, i just return NULL and return MessageDecoderResult.NEED_DATA. I guess position reverting back happenshere. Correct me if i am wrong. Thanks. 2007/3/20, Trustin Lee

A question about implementing MessageDecoder

2007-03-18 Thread Coding Horse
changed the buffer's position, right? thx a lot! -- View this message in context: http://www.nabble.com/A-question-about-implementing-MessageDecoder-tf3422797.html#a9539844 Sent from the mina dev mailing list archive at Nabble.com.

Re: A question about implementing MessageDecoder

2007-03-18 Thread Coding Horse
the buffer's position, right? thx a lot! -- View this message in context: http://www.nabble.com/A-question-about-implementing-MessageDecoder-tf3422797.html#a9540526 Sent from the mina dev mailing list archive at Nabble.com.

Re: How to unit test MessageDecoder and MessageEncoder

2007-01-27 Thread Trustin Lee
Hi Wolverine, On 12/23/06, wolverine my [EMAIL PROTECTED] wrote: Hi! I have written my own MessageDecoder and MessageEncoder. Is it possible to unit test these two classes before the server and client areready? Well, it really doesn't have any differences from unit-testing usual java