update to retry tcp connection failure