Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timeout to curl in get_esgf_dist_mirror #716

Open
alaniwi opened this issue Mar 27, 2019 · 0 comments
Open

Add timeout to curl in get_esgf_dist_mirror #716

alaniwi opened this issue Mar 27, 2019 · 0 comments

Comments

@alaniwi
Copy link
Contributor

alaniwi commented Mar 27, 2019

This:

esgf-installer/esg-functions

Lines 1339 to 1343 in 875df80

if [ $devel -eq 1 ]; then
resarray[$m]=`curl -s -L --insecure $m/dist/devel/lastpush.md5|tr -s " "|cut -d " " -f1`;
else
resarray[$m]=`curl -s -L --insecure $m/dist/lastpush.md5|tr -s " "|cut -d " " -f1`;
fi

causes esg-node to hang if a site does not respond.

A timeout should be specified, with some appropriate behaviour if it times out.

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

No branches or pull requests

1 participant