Hi, everybody.

Maybe it's a stupid question, but I have spent about tow months to struggle
with this problem.

About tow months ago, I started to use Mina to develope a client program to
connect to a server to subscribe the message. The data format of the message
sent to server or received by client is showed as belowing:

[ length_string | 0 | UTF-8 XML(GZ format) ]

Since the data format is byte stream, so I write an ProtocolEncoder and a
ProtocolDecoder to perform the encode and decode job.

The server will send a large message(about 6MB in size) at the first time
when a client connect to, it will take about 8 minutes for server to push
such message. And now the error occurs, at the client site, I think, Mina
will try to split a large size package into small size packages, which will
causes messageReceived being called many times. So the the decoder can't
work as I expected.

Will anyboy know how to solve such problem?

Thanks.

-----
驱鱼爬树,赶鸭上吊
-- 
View this message in context: 
http://www.nabble.com/How-to-receive-the-large-size-package--tp15891083s16868p15891083.html
Sent from the Apache MINA Commits mailing list archive at Nabble.com.

Reply via email to