Revert "Revert "Check if waiting for Reeti server socket""

This reverts commit f4cdb0120d747223d3ed5b98ef7328655208cd56.