Added configurable support for timeout between connection retries.