For Issue#524: added connect task timeout, reduced number of auto connection retries to one