Update documentation about max_retries to reflect code