when I was using boost::asio::async_write to send some large data, I found the data I received was messed up, but total size was correct. it seemed like two groups of data overlapped. What can I do to avoid this happen?
Without code, it's a stab in the dark..
async_read
until the previous read completes and same for async_write
who knows...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.