
Igor R wrote:
I'm having a very basic issue: when sending a large number of UDP messages in short succession via boost::asio, even to localhost, after a few hundred messages, there seems to be a serious loss.
On XP I have seen UDP loss localhost with plain sockets when a machine is under load. I assume that MS literally take the unreliable part of UDP and discard the packets. Remember the localhost IP stack on windows is not the same the more real IP stack on Linux/Unix boxes, there are performance ;) enhancements
please see a sample code here: http://pastebin.com/Bq0DnkeG
I run your code (Win7, MSVC10, boost 1.44), and I can't reproduce the issue you describe, the output is always: b sent 2000 messages a received 2000 messages
Anyway, if I read your code correctly, you assume that all these messages should be sent/received within 1 second, don't you? What if you increase this value? _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users