Steve Johns-2 wrote:
> 
> Did everyone test if Mina drops the message under heavy loading? In Mina
> wesite, I only saw the HTTP server benchmark test. Does everyone have the
> pure socket server benchmark test result? Thanks in advance.
> 

Hi!

I can't agree to this. But there are some reasons why this can happen in
your code.
One big problem is the ProtocolDecoder. To ensure that it works properly
override the decodable and only return an OK if there's a full message at
the buffer. Additional think about the posibility of having more than one
message at the buffer when you enter decode! So remember to stop at the end
of the message and return with an OK. Mina will ensure that the unread bytes
at the buffer are forwarded to you again.
This isn't the fastest way, but the most safe one.

hth and good bug hunting.

Steve
-- 
View this message in context: 
http://www.nabble.com/How-to-lost-message-tp14495265s16868p14574956.html
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

Reply via email to