Thanks for the reply!
"One? (-:"
I'll see what I can do :)
"Why are you’re using libcurl? My guess is that it’s adding a bunch of complexity without yielding much benefit"
We use libcurl because the code is pretty much a cross-platform SDK of sorts, so it's not really an iOS app per se, more like an iOS (and other platform) SDK mostly made up of c++ code.
"I don’t really understand your question, so let’s start with some factoids:"
How I'm doing it is that I'll be stopping all curl downloads and resuming those ones that haven't been completed with NSURLSession in the background. Since we are downloading MB by MB (one MB for each chunk), any leftover downloads in-flight in libcurl (and not downloaded by NSURLSessionTask) will be restarted once the app goes back to the foreground when the user opens it.
But yeah, your answer about large requests + the factoids clearly answered my question. Thanks! Another question that I want to ask, is there a limit to the number of concurrent http requests for NSURLSession? We want to maximize the bandwidth usage as much as possible when the app is in the foreground.
Also, just to be clear, for downloads to be resumable, all the server needs are to fulfil these conditions stated in this page right? Are there any gotchas that I should take note of?
I'll get back to my team on these limitations. Thank you so much! Also, sorry that the comments are just a slew of text cause I don't think markdown works here
Topic:
App & System Services
SubTopic:
Core OS
Tags: