aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-download.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-download.c')
-rw-r--r--src/fs/gnunet-download.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/fs/gnunet-download.c b/src/fs/gnunet-download.c
index bbc750026..bc98d0275 100644
--- a/src/fs/gnunet-download.c
+++ b/src/fs/gnunet-download.c
@@ -46,6 +46,8 @@ static unsigned int anonymity = 1;
46 46
47static unsigned int parallelism = 16; 47static unsigned int parallelism = 16;
48 48
49static unsigned int request_parallelism = 4092;
50
49static int do_recursive; 51static int do_recursive;
50 52
51static char *filename; 53static char *filename;
@@ -208,6 +210,8 @@ run (void *cls,
208 GNUNET_FS_FLAGS_NONE, 210 GNUNET_FS_FLAGS_NONE,
209 GNUNET_FS_OPTIONS_DOWNLOAD_PARALLELISM, 211 GNUNET_FS_OPTIONS_DOWNLOAD_PARALLELISM,
210 parallelism, 212 parallelism,
213 GNUNET_FS_OPTIONS_REQUEST_PARALLELISM,
214 request_parallelism,
211 GNUNET_FS_OPTIONS_END); 215 GNUNET_FS_OPTIONS_END);
212 if (NULL == ctx) 216 if (NULL == ctx)
213 { 217 {
@@ -260,8 +264,12 @@ static struct GNUNET_GETOPT_CommandLineOption options[] = {
260 1, &GNUNET_GETOPT_set_string, &filename}, 264 1, &GNUNET_GETOPT_set_string, &filename},
261 {'p', "parallelism", "DOWNLOADS", 265 {'p', "parallelism", "DOWNLOADS",
262 gettext_noop 266 gettext_noop
263 ("set the maximum number of parallel downloads that are allowed"), 267 ("set the maximum number of parallel downloads that is allowed"),
264 1, &GNUNET_GETOPT_set_uint, &parallelism}, 268 1, &GNUNET_GETOPT_set_uint, &parallelism},
269 {'r', "request-parallelism", "REQUESTS",
270 gettext_noop
271 ("set the maximum number of parallel requests for blocks that is allowed"),
272 1, &GNUNET_GETOPT_set_uint, &request_parallelism},
265 {'R', "recursive", NULL, 273 {'R', "recursive", NULL,
266 gettext_noop ("download a GNUnet directory recursively"), 274 gettext_noop ("download a GNUnet directory recursively"),
267 0, &GNUNET_GETOPT_set_one, &do_recursive}, 275 0, &GNUNET_GETOPT_set_one, &do_recursive},