Socket test source: Retry 3 times if error connectiong to server