@glash/cli 0.2.36 → 0.2.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commands/deploy.mjs +5 -2
- package/package.json +1 -1
package/commands/deploy.mjs
CHANGED
|
@@ -711,9 +711,12 @@ function sourceUploadPartSize(value) {
|
|
|
711
711
|
}
|
|
712
712
|
|
|
713
713
|
function sourceUploadConcurrency(flags = {}) {
|
|
714
|
-
|
|
714
|
+
// Default 3: fewer simultaneous part uploads means each connection gets more of
|
|
715
|
+
// a constrained uplink and finishes before it can be reset mid-stream. Override
|
|
716
|
+
// with --source-concurrency or GLASH_SOURCE_UPLOAD_CONCURRENCY.
|
|
717
|
+
const raw = flags['source-concurrency'] ?? process.env.GLASH_SOURCE_UPLOAD_CONCURRENCY ?? '3';
|
|
715
718
|
const parsed = Number(raw);
|
|
716
|
-
if (!Number.isFinite(parsed) || parsed < 1) return
|
|
719
|
+
if (!Number.isFinite(parsed) || parsed < 1) return 3;
|
|
717
720
|
return Math.max(1, Math.min(8, Math.floor(parsed)));
|
|
718
721
|
}
|
|
719
722
|
|
package/package.json
CHANGED