Unable to sustain a Constant Speed while Uploading files in the background with NSURLSession
- 阅读更多 关于 Unable to sustain a Constant Speed while Uploading files in the background with NSURLSession
I am trying to upload some 100 images to S3 in the background with AFURLSessionManager in small batches of 10 like what is being done here- Manage the number of active tasks in a background NSURLSession I am using a shared NSURLSession and adding tasks according more tasks to this when some tasks are completed. Average size of each file is about 1.6 MB and the number of tasks that are guaranteed to run per a task queue is 5 Here is my method for adding the tasks: (also available as an easier-to-read gist ) - (void) addTasksToSessionWithTaskObject:(Task*)taskObject