From 481dbfda07b96a1e0d3c00cb41d4ea1d1777cdbb Mon Sep 17 00:00:00 2001 From: Otavio Pontes Date: Mon, 10 Sep 2018 12:28:27 -0700 Subject: [PATCH] packs: Don't download packs in parallel as default There's a known issue (#562) when trying to download large files in parallel. As a temporary fix, don't donwload packs in parallel, so we won't trigger this problem. --- src/packs.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/packs.c b/src/packs.c index 5767b917..7ac76e54 100644 --- a/src/packs.c +++ b/src/packs.c @@ -36,8 +36,15 @@ #include "swupd.h" /* hysteresis thresholds */ -#define MAX_XFER 25 -#define MAX_XFER_BOTTOM 15 +/* TODO: update MAX_XFER after bug #562 is fixed. + * + * MAX XFER is the number of simultaneous downloads to be performed at the same + * time. This value is set to 1 because of a bug that causes a dowload problem + * when extrating a large file while other is being downloaded. Set this value + * to a larger number, to be defined by tests, after bug is fixed. +*/ +#define MAX_XFER 1 +#define MAX_XFER_BOTTOM 0 struct pack_data { char *url;