fn connect_with_retry( socket_name: SocketName<'_>, attempts: u32, delay: Duration, ) -> Option<Client>
Try to connect to the server socket up to attempts times, sleeping delay between tries.
attempts
delay