diff options
author | Mole Shang <[email protected]> | 2023-08-07 21:50:10 +0800 |
---|---|---|
committer | Mole Shang <[email protected]> | 2023-08-07 22:59:18 +0800 |
commit | f9b502b5fdfeb7e11e3eacc158b41748623efd56 (patch) | |
tree | b2e7f840685feb246139860ff754f37e8abc6e40 /src/constants.h | |
parent | 1a5e67daaae24b2bdf17d3ea04fbbdf5e0ab9a60 (diff) | |
download | hinata-f9b502b5fdfeb7e11e3eacc158b41748623efd56.tar.gz hinata-f9b502b5fdfeb7e11e3eacc158b41748623efd56.tar.bz2 hinata-f9b502b5fdfeb7e11e3eacc158b41748623efd56.zip |
process_url: add retries while downloading
Diffstat (limited to 'src/constants.h')
-rw-r--r-- | src/constants.h | 1 |
1 files changed, 1 insertions, 0 deletions
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) |