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
root@56a5c7b80758:/code# swift sdk list
swswift-6.0.3-RELEASE_static-linux-0.0.1
root@56a5c7b80758:/code# swift --version
Swift version 6.0.3 (swift-6.0.3-RELEASE)
Target: x86_64-unknown-linux-gnu
root@56a5c7b80758:/code# cat Sources/main.swift
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
// work around for https://github.com/swiftlang/swift-corelibs-foundation/issues/4644
_ = URLSession.shared
#endif
do {
guard CommandLine.argc > 1 else {
print("pass a url argument")
exit(1)
}
let arg = CommandLine.arguments[1]
let u = URL(string: arg)?.scheme == nil
? URL(filePath: arg).standardizedFileURL : URL(string: arg)!
let d = try Data(contentsOf: u)
print("loaded \(d.count) bytes from \(u.absoluteString)")
} catch {
print("Error: \(error.localizedDescription)")
}
When built with static sdk http works, but https does not: export URLSessionDebugLibcurl=true set for debug output.
swift static sdk is unable to use SSL.
When built with static sdk
http
works, buthttps
does not:export URLSessionDebugLibcurl=true
set for debug output.failing
https
:Without static sdk,
https
works fine:When using non-static libcurl, I see TLSv1.3 is selected immediately:
When using static libcurl, it uses TLSv1.2 and doesn't offer
h2
:The text was updated successfully, but these errors were encountered: