Added socket_retry