swiftlang / swift-corelibs-foundation

The Foundation Project, providing core utilities, internationalization, and OS independence
swift.org
Apache License 2.0
5.29k stars 1.13k forks source link

[6.0.x] Fix crash when using WebSockets with URLSession.shared #5131

Closed jrflat closed 2 weeks ago

jrflat commented 2 weeks ago

Explanation: Prevents a fatalError when using a URLSessionWebSocketTask from URLSession.shared. Scope: Only impacts URLSessionWebSocketTask. Original PR: #5128 Risk: Low - Small change to not fatalError in a supported config. Testing: Added unit test, local testing with websocket-enabled curl, swift-ci Reviewer: @parkera

Resolves #4730 for release/6.0

jrflat commented 2 weeks ago

@swift-ci please test