Closed dodosp closed 7 years ago
In general, an NSURLSession background session does not fail a task if something goes wrong on the wire. Rather, it continues looking for a good time to run the request and retries at that time. This continues until the resource timeout expires (that is, the value of the timeoutIntervalForResource property in the NSURLSessionConfiguration object you use to create the session). The current default for that value is one week!
I have set timeoutIntervalForRequest in the session configuration and tried with a URL that gives a timeout "http://www.google.com:81/" but the timeout is not triggered, didFinishWithError is not called. On the contrary if i ser timeoutIntervalForResponse this timeout is triggered. Maybe you have some insight?