Re: URLSession on iOS 10
Re: URLSession on iOS 10
- Subject: Re: URLSession on iOS 10
- From: Jens Alfke <email@hidden>
- Date: Wed, 23 Nov 2016 11:47:08 -0800
On Nov 23, 2016, at 8:16 AM, Shawn Erickson < email@hidden> wrote:
We throttle for 3 main reasons. 1) Starting many requests - in our experience - results in a far higher likelihood of requests randomly timing out. It seems like the timeout starts ticking relative to creation of the task - possibly initial resume - and not after some internal throttling takes place. That makes firing off a large number of requests a little to non deterministic.
I’ve run into the same problem, and also use throttling to avoid it. (However, this was several years ago; I would hope this would have been fixed by now. Pretty sure I filed a Radar at the time.)
To be precise: the behavior I saw is that if you set a timeout on an NSURLRequest, start the request, and if after that interval the request hasn’t actually been sent over the wire yet, the request will fail with a timeout error. If you queue up requests faster than the session can send them, this is a real problem.
—Jens |
_______________________________________________
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