From f9b502b5fdfeb7e11e3eacc158b41748623efd56 Mon Sep 17 00:00:00 2001 From: Mole Shang <135e2@135e2.dev> Date: Mon, 7 Aug 2023 21:50:10 +0800 Subject: process_url: add retries while downloading --- src/constants.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/constants.h') diff --git a/src/constants.h b/src/constants.h index 2d49ffd..0158e7e 100644 --- a/src/constants.h +++ b/src/constants.h @@ -6,6 +6,7 @@ #define MAX_THREAD 6 #define MAX_THREAD_SIZE 10485760 +#define MAX_RETRY 3 #define CEIL_DIV(a, b) (((a) + (b)-1) / (b)) #define MAX(x, y) ((x) > (y)) ? (x) : (y) -- cgit v1.2.3