diff options
Diffstat (limited to 'src/fs/gnunet-fs-gtk.c')
-rw-r--r-- | src/fs/gnunet-fs-gtk.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/fs/gnunet-fs-gtk.c b/src/fs/gnunet-fs-gtk.c index 6a39aa7a..415f142c 100644 --- a/src/fs/gnunet-fs-gtk.c +++ b/src/fs/gnunet-fs-gtk.c | |||
@@ -27,6 +27,18 @@ | |||
27 | #include "gnunet-fs-gtk_common.h" | 27 | #include "gnunet-fs-gtk_common.h" |
28 | #include "gnunet-fs-gtk_event-handler.h" | 28 | #include "gnunet-fs-gtk_event-handler.h" |
29 | 29 | ||
30 | |||
31 | /** | ||
32 | * How many block requests can we have outstanding in parallel at a time by default? | ||
33 | */ | ||
34 | #define DEFAULT_MAX_PARALLEL_REQUESTS 100000 | ||
35 | |||
36 | /** | ||
37 | * How many downloads can we have outstanding in parallel at a time by default? | ||
38 | */ | ||
39 | #define DEFAULT_MAX_PARALLEL_DOWNLOADS 128 | ||
40 | |||
41 | |||
30 | /** | 42 | /** |
31 | * Should gnunet-fs-gtk start in tray mode? | 43 | * Should gnunet-fs-gtk start in tray mode? |
32 | */ | 44 | */ |
@@ -275,12 +287,12 @@ run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
275 | /* FIXME: should these '1's be here? Maybe better to put them into | 287 | /* FIXME: should these '1's be here? Maybe better to put them into |
276 | * default config files? | 288 | * default config files? |
277 | */ | 289 | */ |
278 | if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_number (main_context->cfg, "gnunet-gtk", | 290 | if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_number (main_context->cfg, "gnunet-fs-gtk", |
279 | "MAX_PARALLEL_DOWNLOADS", &dl_parallel)) | 291 | "MAX_PARALLEL_DOWNLOADS", &dl_parallel)) |
280 | dl_parallel = 1; | 292 | dl_parallel = DEFAULT_MAX_PARALLEL_DOWNLOADS; |
281 | if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_number (main_context->cfg, "gnunet-gtk", | 293 | if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_number (main_context->cfg, "gnunet-fs-gtk", |
282 | "MAX_PARALLEL_REQUESTS", &req_parallel)) | 294 | "MAX_PARALLEL_REQUESTS", &req_parallel)) |
283 | req_parallel = 1; | 295 | req_parallel = DEFAULT_MAX_PARALLEL_REQUESTS; |
284 | 296 | ||
285 | /* initialize file-sharing */ | 297 | /* initialize file-sharing */ |
286 | fs = GNUNET_FS_start (main_context->cfg, "gnunet-fs-gtk", | 298 | fs = GNUNET_FS_start (main_context->cfg, "gnunet-fs-gtk", |