diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-07-20 19:14:00 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-07-20 19:14:16 +0200 |
commit | b88940850002a3f1c25bc6488b95ad30eb80d696 (patch) | |
tree | 9af44fc7571282e3adc379dbbff06d4d34c6c2b6 /src/tool_cfgable.h | |
parent | 14a385b3aec7f2f1c6a5247cf41c785990dfb39e (diff) | |
download | curl-b88940850002a3f1c25bc6488b95ad30eb80d696.tar.gz |
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
Diffstat (limited to 'src/tool_cfgable.h')
-rw-r--r-- | src/tool_cfgable.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tool_cfgable.h b/src/tool_cfgable.h index e374a7f0e..848123e7c 100644 --- a/src/tool_cfgable.h +++ b/src/tool_cfgable.h @@ -38,7 +38,6 @@ typedef enum { struct GlobalConfig; struct OperationConfig { - CURL *easy; /* A copy of the handle from GlobalConfig */ bool remote_time; char *random_file; char *egd_file; @@ -242,9 +241,6 @@ struct OperationConfig { bool use_metalink; /* process given URLs as metalink XML file */ metalinkfile *metalinkfile_list; /* point to the first node */ metalinkfile *metalinkfile_last; /* point to the last/current node */ -#ifdef CURLDEBUG - bool test_event_based; -#endif char *oauth_bearer; /* OAuth 2.0 bearer token */ bool nonpn; /* enable/disable TLS NPN extension */ bool noalpn; /* enable/disable TLS ALPN extension */ @@ -268,7 +264,6 @@ struct OperationConfig { }; struct GlobalConfig { - CURL *easy; /* Once we have one, we keep it here */ int showerror; /* -1 == unset, default => show errors 0 => -s is used to NOT show errors 1 => -S has been used to show errors */ @@ -286,6 +281,11 @@ struct GlobalConfig { char *libcurl; /* Output libcurl code to this file name */ bool fail_early; /* exit on first transfer error */ bool styled_output; /* enable fancy output style detection */ +#ifdef CURLDEBUG + bool test_event_based; +#endif + bool parallel; + long parallel_max; struct OperationConfig *first; struct OperationConfig *current; struct OperationConfig *last; /* Always last in the struct */ |