3

Very similar to the issue described here: sessionWithConfiguration freezing iOS 8 iPhone 4S on new Xcode 6.0.1

I have a NSURLSession that i create using backgroundConfigurationWithIdentifier: method (in ios8).

If i create a few hundred downloads, then the app freezes randomly on either [NSURLSession* invalidateAndCancel] or on the NSURLSession *session = [NSURLSession sessionWithConfiguration:backgroundConfiguration];

If i restart the device, this goes away. This is only replicable if i queue a few hundred downloads and then send the 'invalidateAndCancel' message. UPDATE If i queue only a handful of downloads on the session then this works. So it seems that the NSURLSession can't handle that many tasks queued, even when you provide your own NSOperationQueue.

Community
  • 1
  • 1
zaitsman
  • 8,984
  • 6
  • 47
  • 79

0 Answers0