Le 7/26/12 7:07 AM, ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S) a écrit :
Hi,
Sometimes, the data sent by client is received by the broker in two
RECEIVED events as shown below. Whereas, they should be just one continuous
message from the client. In such cases, the Handler code (i.e.extension of
IoHandlerAdapter) never receives control. This is seen as a timeout by the
client and it terminates the connection. Why does this happen
Because of the very nature of TCP.

and what can
I do to fix this ?
You have to deal with packets fragmentation.

There is *no* guarantee that a message sent by a client will arrive on the server as one big block. You may even received the message byte by byte.

Worse, you may receive more than one message...

--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

Reply via email to