|
Boost Users : |
Subject: Re: [Boost-users] asio UDP message packet loss even on localhost?
From: Reynolds, John (John.Reynolds_at_[hidden])
Date: 2010-10-22 09:18:49
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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net