In client side I am using async sockets to connect to the server. I have 300 clients connecting to the server. If 100 or more clients try to send a message at a time, many of the socket clients are timing out. I have client pseudo code some thing like this...
loop 3 times
if connect returns WSAEWOULDBLOCK
use socket select after random time between 1-2 sec.
if success return
How do maximize the number of successful connects?