retry download on socket errors