Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Defer cancellation to run on the request thread.
Cancellation ends up addressing runloop objects and CF objects (and also accesses the runloop for the current thread), at least some of which will only work on the thread the request is running on. For example, cancel calls cancelLoad which calls destroyReadStream which needs to access the runloop for the request for this: [[self readStream] removeFromRunLoop:[NSRunLoop currentRunLoop] forMode:[self runLoopMode]];
- Loading branch information