Speed up downloads by combining multiple network connections in parallel
TypeScript bandwidth-aggregationcross-platformdesktop-appdownloaderdownloadmanagerlinuxmacosmulticonnectionparallel-downloadswindows
Fix resume for simulated downloads clobbering their synthetic interfaces
Anmol Kapil036749db661d
diff --git a/src/main/download/downloadManager.ts b/src/main/download/downloadManager.tsindex d2b76dc..df2078f 100644--- a/src/main/download/downloadManager.ts+++ b/src/main/download/downloadManager.ts@@ -601,12 +601,18 @@ export class DownloadManager {}let availableInterfaces: NetworkInterfaceInfo[]- try {- availableInterfaces = await this.refreshInterfaces()- } catch {- runtime.state.error = 'Could not refresh network interfaces. Try resuming again.'- this.pushUpdate(runtime)- return+ if (isSimulatedUrl(url)) {+ // Synthetic sim interfaces aren't real NICs the OS enumerates — they never "disconnect",+ // so the ones already on the runtime are still exactly right.+ availableInterfaces = runtime.activeInterfaces+ } else {+ try {+ availableInterfaces = await this.refreshInterfaces()+ } catch {+ runtime.state.error = 'Could not refresh network interfaces. Try resuming again.'+ this.pushUpdate(runtime)+ return+ }}if (runtime.state.status !== 'paused') return