Payload split over two TCP packets when using Boost ASIO, when it fits within the MTU
问题 I have a problem with a boost::asio::ip::tcp::iostream. I am trying to send about 20 raw bytes. The problem is that this 20 byte payload is split into two TCP packets with 1 byte, then 19 bytes. Simple problem, why it is happening I have no idea. I am writing this for a legacy binary protocol that very much requires the payload to fit in a single TCP packet (groan). Pasting the whole source from my program would be long and overly complex, I've posted the functional issue just within 2