You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by sishen <si...@gmail.com> on 2006/12/22 07:29:47 UTC

Problem about MTU and Buffer

Hi, guys.

I met the problem about MTU and buffer.

When the server send the message larger than 1492bytes to me, the client get
the UnderflowException.

for example, the serve send 5000bytes, and automatically splitted into
several frames.

When the client got messageReceive(just one frame), it went to decode the
buffer.  Unfortunately,
it failed, no doubt.

I debuged it, and found the limit is 1400+, which is expected to 5000.

I want to know that how can i make the client to delay processing until the
whole packet received.

Thx.

ps: My version of mina is 1.0.0