mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maarten Bosteels" <mbosteels....@gmail.com>
Subject Re: big message problem
Date Thu, 30 Aug 2007 08:25:20 GMT
On 8/30/07, Niklas Therning <niklas@trillian.se> wrote:
>
> hittih wrote:
> > I'v implemented a server using MINA ,but now I have met a problem.
> Clients
> > send hudge message to my server.I find that MINA split a hudge message
> into
> > many smaller message,how can I get the right message?
> >
> Even if your client writes a large chunk of bytes at once to a socket it
> doesn't mean that it will arrive at the server as one big chunk. It
> ain't MINA's fault, it's just the way it works. You will have to
> reassemble the split message into the original huge message on the MINA
> side. The ProtocolCodecFilter will help you out. Have a look at the
> examples.


And have a look at the tutorial:
http://mina.apache.org/tutorial-on-protocolcodecfilter.html

Maarten

HTH
>
> --
> Niklas Therning
> www.spamdrain.net
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message