Skip to content

Commit 9e0878d

Browse files
committed
Base. Restricted snapshot download to a single conection only
1 parent 979996f commit 9e0878d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/base/lib/assets/restore-from-snapshot-http.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ while (( SNAPSHOT_DOWNLOAD_STATUS != 0 ))
2020
do
2121
PIDS=$(pgrep aria2c)
2222
if [ -z "$PIDS" ]; then
23-
aria2c $SNAPSHOT_URL -d $SNAPSHOT_DIR -o $SNAPSHOT_FILE_NAME -l /data/download.log --log-level=notice --allow-overwrite=true --allow-piece-length-change=true
23+
aria2c --max-connection-per-server=1 $SNAPSHOT_URL -d $SNAPSHOT_DIR -o $SNAPSHOT_FILE_NAME -l /data/download.log --log-level=notice --allow-overwrite=true --allow-piece-length-change=true
2424
fi
2525
SNAPSHOT_DOWNLOAD_STATUS=$?
2626
pid=$(pidof aria2c)

0 commit comments

Comments
 (0)