new retries value and support for auto-reconnection after retries