Skip to content

Add timeout to curl in get_esgf_dist_mirror #716

@alaniwi

Description

@alaniwi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions