Post

Replies

Boosts

Views

Activity

NSURLSession caused huge memory retain in libnetwork
I am using this code. I have huge number of urlSessions but this caused huge memory retain in libnetwork NSURLSessionConfiguration* _configuration = [NSURLSessionConfiguration defaultSessionConfiguration]; NSURLSession* urlSession = [NSURLSession sessionWithConfiguration:_configuration delegate:_delegate delegateQueue:NSOperationQueue.mainQueue]; NSURLSessionDataTask* dataTask = [urlSession dataTaskWithRequest:request]; [dataTask resume]; how can i avoid this memory retain. I have tried all possible fixes by not using urlCache and all. below is xcode memory retain snippet - please suggest how I can avoid this memory retain?
3
1
1k
Jun ’23
NSURLSession caused huge memory retain in libnetwork
I am using this code. I have huge number of urlSessions but this caused huge memory retain in libnetwork NSURLSessionConfiguration* _configuration = [NSURLSessionConfiguration defaultSessionConfiguration]; NSURLSession* urlSession = [NSURLSession sessionWithConfiguration:_configuration delegate:_delegate delegateQueue:NSOperationQueue.mainQueue]; NSURLSessionDataTask* dataTask = [urlSession dataTaskWithRequest:request]; [dataTask resume]; how can i avoid this memory retain. I have tried all possible fixes by not using urlCache and all. below is xcode memory retain snippet - please suggest how I can avoid this memory retain?
Replies
3
Boosts
1
Views
1k
Activity
Jun ’23