This can easily happen if a proxy exists between them. If we assume that the proxy does not exist, the client will receive the same packets as the server. If you send data in parts less than the TCP MSS of your link, the client will probably receive it in one piece.
However, I would not rely on this. It's easy to tell the end of an XML message by seeing the close ( </message>) tag , so it's easy to parse XML from a stream.
source
share