File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,9 @@ actor Manager {
31
31
// The tunnel might be asked to start before the network interfaces have woken up from sleep
32
32
sessionConfig. waitsForConnectivity = true
33
33
// URLSession's waiting for connectivity sometimes hangs even when
34
- // the network is up so this is deliberately short (15s ) to avoid a
34
+ // the network is up so this is deliberately short (30s ) to avoid a
35
35
// poor UX where it appears stuck.
36
- sessionConfig. timeoutIntervalForResource = 15
36
+ sessionConfig. timeoutIntervalForResource = 30
37
37
try await download ( src: dylibPath, dest: dest, urlSession: URLSession ( configuration: sessionConfig) )
38
38
} catch {
39
39
throw . download( error)
Original file line number Diff line number Diff line change @@ -31,7 +31,10 @@ public enum ValidationError: Error {
31
31
case . missingInfoPList:
32
32
" Info.plist is not embedded within the dylib. "
33
33
case . belowMinimumCoderVersion:
34
- " The Coder deployment must be version \( SignatureValidator . minimumCoderVersion) or higher to use Coder Desktop. "
34
+ """
35
+ The Coder deployment must be version \( SignatureValidator . minimumCoderVersion)
36
+ or higher to use Coder Desktop.
37
+ """
35
38
}
36
39
}
37
40
@@ -53,6 +56,7 @@ public class SignatureValidator {
53
56
private static let signInfoFlags : SecCSFlags = . init( rawValue: kSecCSSigningInformation)
54
57
55
58
// `expectedVersion` must be of the form `[0-9]+.[0-9]+.[0-9]+`
59
+ // swiftlint:disable:next cyclomatic_complexity
56
60
public static func validate( path: URL , expectedVersion: String ) throws ( ValidationError) {
57
61
guard FileManager . default. fileExists ( atPath: path. path) else {
58
62
throw . fileNotFound
You can’t perform that action at this time.
0 commit comments