Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash when canceling NSURLSession task
- The crash happened when canceling the task after read/write socket was closed. - In -checkError:, also ignore the ENOTCONN error if there was a request socket close. - In -readHTTPResponse, also call checkError: the same way as in -receive and -writeAndFree:. This is not directly related to the crash but make the error check going the same path. #2085
- Loading branch information
Showing
1 changed file
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters