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
Describe the bug
The crash occurs infrequently when either a new HTTP request is created or handle a finishing task. From my observation, the crash occurs on performing operations like get, set, remove on the dictionary 'taskMap' in DelegateManager class. There could be a race condition. I installed SwiftHTTP 3.0.1 using CocoaPods. Kindly let me know how to rectify this based on the info below.
This is the code the creates the HTTP request private func createRequest(with method: HTTPVerb, at uri: String, parameters: HTTPParameterProtocol?, headers: [String: String]?, requestSerializer _: HTTPSerializeProtocol, completionHandler: ((Response) -> Void)? = nil) -> HTTP? {
The PR submitted should be ready in any new version? I'm having the same crash and in Xcode is marked the Operations.swift file. Do I have to update manually?
What is expected
Crashes should not happen
Describe the bug
The crash occurs infrequently when either a new HTTP request is created or handle a finishing task. From my observation, the crash occurs on performing operations like get, set, remove on the dictionary 'taskMap' in DelegateManager class. There could be a race condition. I installed SwiftHTTP 3.0.1 using CocoaPods. Kindly let me know how to rectify this based on the info below.
This is the code the creates the HTTP request
private func createRequest(with method: HTTPVerb, at uri: String, parameters: HTTPParameterProtocol?, headers: [String: String]?, requestSerializer _: HTTPSerializeProtocol, completionHandler: ((Response) -> Void)? = nil) -> HTTP? {
return HTTP.New(uri, method: method, parameters: parameters, headers: headers, requestSerializer: JSONParameterSerializer(), completionHandler: completionHandler)
}
The different crashes are shared below:
1. SwiftHTTP: specialized Dictionary.Variant.setValue(:forKey:)
2. SwiftHTTP: specialized Dictionary._Variant.removeValue(forKey:)
3. SwiftHTTP: specialized NativeDictionary.mutatingFind(:isUnique:)
4. SwiftHTTP: specialized Dictionary.subscript.getter
The text was updated successfully, but these errors were encountered: