Matheus -

This is true if you have only called io_sevice::run from one thread. If you
have multiple threads processing events you will have issues because each
thread may be writing to the socket at the same time. This would not be a TCP
layer issue... it would be an application problem.

Best Regards -

I see your point Michael, but in that case wouldn't the io_service::run threads be just picking results from the O.S and (maybe) requesting operations ?
I think the threads wouldn't write to the socket itself, the O.S would do that.

Regards,
--
Matheus Araújo Aguiar
Computer Scientist
matheus.pit@gmail.com