mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-07 14:11:52 +00:00
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.
This commit is contained in:
committed by
Matthew Johnson
parent
675dff27fc
commit
481dbfda07
+9
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user