make retryOnSocketFailure private