ios - NSURLSession sessionWithConfiguration hangs -
very similar issue described here: sessionwithconfiguration freezing ios 8 iphone 4s on new xcode 6.0.1
i have nsurlsession create using backgroundconfigurationwithidentifier: method (in ios8).
if create few hundred downloads, app freezes randomly on either [nsurlsession* invalidateandcancel]
or on nsurlsession *session = [nsurlsession sessionwithconfiguration:backgroundconfiguration];
if restart device, goes away. replicable if queue few hundred downloads , send 'invalidateandcancel
' message. update if queue handful of downloads on session works. seems nsurlsession can't handle many tasks queued, when provide own nsoperationqueue.
Comments
Post a Comment