Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit
Swift apple-silicond3dmetaldxmtdxvkgame-porting-toolkitgptkmac-gamingmacosmetalfxrosetta-2steamsteam-playwinewinecx
fix(setup): slow connections get three hours to download the engine, not 30 minutes
raymondchinse47719c22bdf
diff --git a/app/Sources/BridgeplayApp/Support/PinnedDownload.swift b/app/Sources/BridgeplayApp/Support/PinnedDownload.swiftindex 53d0324..da60c31 100644--- a/app/Sources/BridgeplayApp/Support/PinnedDownload.swift+++ b/app/Sources/BridgeplayApp/Support/PinnedDownload.swift@@ -34,7 +34,9 @@ enum PinnedDownload {}}- static let session = session(deadline: 30 * 60)+ // The engine is about 440 MB: three hours still finishes it at about 42 KB/s. Stalls+ // fail sooner on the 60 second idle timeout.+ static let session = session(deadline: 3 * 60 * 60)static func session(deadline: TimeInterval, protocols: [AnyClass] = []) -> URLSession {let config = URLSessionConfiguration.defaultdiff --git a/app/Tests/BridgeplayAppTests/PinnedDownloadTests.swift b/app/Tests/BridgeplayAppTests/PinnedDownloadTests.swiftindex 6493d95..b9943a6 100644--- a/app/Tests/BridgeplayAppTests/PinnedDownloadTests.swift+++ b/app/Tests/BridgeplayAppTests/PinnedDownloadTests.swift@@ -115,7 +115,7 @@ struct PinnedDownloadTests {@Test("A download has an overall deadline, not only an idle one")func downloadsHaveADeadline() {- #expect(PinnedDownload.session.configuration.timeoutIntervalForResource <= 60 * 60)+ #expect(PinnedDownload.session.configuration.timeoutIntervalForResource <= 4 * 60 * 60)}private final class Trickle: URLProtocol, @unchecked Sendable {