Adding connection timeout to retry