You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a fairly large Package.swift with 50 binary dependencies:
grep binaryTarget Package.swift | wc -l
50
In total the size of these 50 zip files is 400 MB. On a slower internet connection (16 MBit) the swift package resolve command errors out with some HTTP timeouts. It seems the main problem is that all 50 HTTP requests are executed at the same time:
However this is not the best solution. Requests still run into some timeout and are just retried. So network bandwith is being wasted on the client and on the server. What do you think about introducing some HTTP request queue so that only n requests are executed at the same time?
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: b0f34e2358f5a3afa8d76e5609aa7ac8
Issue Description:
We have a fairly large Package.swift with 50 binary dependencies:
In total the size of these 50 zip files is 400 MB. On a slower internet connection (16 MBit) the
swift package resolve
command errors out with some HTTP timeouts. It seems the main problem is that all 50 HTTP requests are executed at the same time:https://github.com/apple/swift-package-manager/blob/main/Sources/Workspace/Workspace.swift#L2273-L2291
Applying following diff already resolves our problem:
However this is not the best solution. Requests still run into some timeout and are just retried. So network bandwith is being wasted on the client and on the server. What do you think about introducing some HTTP request queue so that only n requests are executed at the same time?
The text was updated successfully, but these errors were encountered: