Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Avoid hard loop when file unavailable #3

Merged
merged 1 commit into from
Jan 21, 2017
Merged

Avoid hard loop when file unavailable #3

merged 1 commit into from
Jan 21, 2017

Conversation

petiepooo
Copy link

When the download is not available, this script gets stuck in a hard loop retrying, filling up both logfiles and bandwidth to a proxy. This patch neuters the retry attempt by just continuing on.

To test, try sinkholing the ftp.afrinic.org IP and running the weekly cron task.. Alternatively, if you use a proxy such as squid3 (like I do), disable the ftp protocol for the test duration.

This can become an issue for sensors that do not have direct internet access.

When the download is not available, this script gets stuck in a hard loop retrying, filling up both logfiles and bandwidth to a proxy.  This patch neuters the retry attempt by just continuing on.
@dougburks
Copy link

Thanks, @petiepooo !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants