From b88940850002a3f1c25bc6488b95ad30eb80d696 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 20 Jul 2019 19:14:00 +0200 Subject: curl: support parallel transfers This is done by making sure each individual transfer is first added to a linked list as then they can be performed serially, or at will, in parallel. Closes #3804 --- src/tool_main.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/tool_main.h') diff --git a/src/tool_main.h b/src/tool_main.h index 868818816..a68287ec8 100644 --- a/src/tool_main.h +++ b/src/tool_main.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2012, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2019, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -28,6 +28,9 @@ #define RETRY_SLEEP_DEFAULT 1000L /* ms */ #define RETRY_SLEEP_MAX 600000L /* ms == 10 minutes */ +#define MAX_PARALLEL 300 /* conservative */ +#define PARALLEL_DEFAULT 50 + #ifndef STDIN_FILENO # define STDIN_FILENO fileno(stdin) #endif -- cgit v1.2.3