c# - Stress testing .NET program throws exceptions on Windows 10 -
i have method stress testing program wrote:
void udpstress(ipendpoint destination) { byte[] data = new byte[] { 255 }; socket s = new socket(system.net.sockets.addressfamily.internetwork, sockettype.dgram, protocoltype.udp); while (true) s.sendto(data, destination); }
after running method, following exception in less 1 second:
system.net.sockets.socketexception: operation on socket not performed because system lacked sufficient buffer space or because queue full
i ran on windows 8 , worked fine.
i upgraded windows 10 2 weeks ago , doesn't work. suspect has modified socket api in windows 10, or something.
so, error coming from? , why happen in windows 10, didn't happen @ in windows 8?
edit: answers on other question don't solve problem. suggest things port exhaustion, might possible never happened me before upgraded windows 10. program worked fine on windows 8 now, reason i'm struggling understand, doesn't work on windows 10 because of exception. additionally, answer there says works on vista not on 7, suggests there's different between oses limits stress testing program. this? can solve somehow?
Comments
Post a Comment