Committed by
Ben Copsey
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]];
Showing
1 changed file
with
12 additions
and
1 deletions
-
Please register or login to post a comment