add MAX_DOWNLOADING_TASKS, MAX_SEEDING_TASKS