summaryrefslogtreecommitdiff
path: root/src/constants.h
diff options
context:
space:
mode:
authorMole Shang <[email protected]>2023-08-07 21:50:10 +0800
committerMole Shang <[email protected]>2023-08-07 22:59:18 +0800
commitf9b502b5fdfeb7e11e3eacc158b41748623efd56 (patch)
treeb2e7f840685feb246139860ff754f37e8abc6e40 /src/constants.h
parent1a5e67daaae24b2bdf17d3ea04fbbdf5e0ab9a60 (diff)
downloadhinata-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.h1
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)