Re: How much time do I have to move a NSURLSession temporary file?
Re: How much time do I have to move a NSURLSession temporary file?
- Subject: Re: How much time do I have to move a NSURLSession temporary file?
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Wed, 01 Apr 2015 10:36:33 +0100
On 31 Mar 2015, at 21:00, Daryle Walker <email@hidden> wrote:
> Everything has been working for the past few trials, then spontaneously stopped working. Now I’m getting '“TempFile.whatever” doesn’t exist’ errors.
Two things:
o Make sure you're delegate queue is a serial queue (set maxConcurrentOperationCount to 1). Without that it's very easy to tie yourself up in knots here.
o Are you sure that the file was created in the first place? I've seen situations where the download failed but -URLSession:downloadTask:didFinishDownloadingToURL: was called anyway and the file didn't exist. I haven't yet got to the bottom of the problem but I suspect it's related to a race condition described in the DevForums post referenced below.
<https://devforums.apple.com/message/1115836#1115836>
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden