I am working with Datagram sockets in a multithreaded environment. Initially there was no packet loss. when i increased the number of the threads (say twice the number of previous threads) i start loosing the UDP packets.
what could be the reason for this packet loss? i haven't changed any of my other network parametrs(Lan speed etc).
Thanks in advance.
posted 10 years ago
Can't give you a panacea for your dropped UDP packets. But I can suggest that dropped packets in UDP are not surprising since their delivery is not confirmed. If packet loss is really causing problems for you, then maybe you should consider TCP instead.