Debugging message corruption in the protocol
- lock write message, as it can be called from different threads.
- log the amount of bytes received on the transport.
Debuging
dds-protocol: fixed message corruption in case when several simultaneous calls for async_write were perfumed.
Do not execute writeMessage if older messages are being processed.
We must not register more, than async_write in the same time (different threads). Only one async_write is allowed at time per socket to avoid messages corruption.