@seancribbs a random sleep is needed when the issue is client-side, perhaps a network glitch or a temporary leak of resources, for example free sockets: in that scenario a new immediate connection is likely to fail again, while a small wait could give  the kernel a chance to free up some resources...