[
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
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
DemuxingProtocolCodecFactory doesn't reset the current MessageDecoder when
NOT_OK is returned.
--
Key: DIRMINA-436
URL: https://issues.apache.org/jira/browse/DIRMINA-436
!
DemuxingProtocolCodecFactory doesn't reset the current MessageDecoder when
NOT_OK is returned.
--
Key: DIRMINA-436
URL: https://issues.apache.org/jira/browse/DIRMINA-436
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
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
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
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.
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
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
://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.
.
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
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
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
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.
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.
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
17 matches
Mail list logo