AFNetworking/AFNetworking — pull request #2074 by mattt (2014-05-17 19:58:15+00:00)
Title: Add attemptsToRecreateUploadTasksForBackgroundSessions @property

Following up from discussion in #1675, on the recommendation of @kolyuchiy, this patch adds a property to attempt the recommended workaround.

```objective-c
/**
Whether to attempt to retry creation of upload tasks for background sessions when initial call returns `nil`. `NO` by default.

@bug As of iOS 7.0, there is a bug where upload tasks created for background tasks are sometimes `nil`. As a workaround, if this property is `YES`, AFNetworking will follow Apple's recommendation to try creating the task again.

@see https://github.com/AFNetworking/AFNetworking/issues/1675
*/
@property (nonatomic, assign) BOOL attemptsToRecreateUploadTasksForBackgroundSessions;
```

For those noticing these bugs in production, any thoughts?