In ASIHTTPRequest.m find the -checkRequestStatus method.
When a timeout occurs, the request fails with type ASIRequestTimedOutError :
[self failWithError:ASIRequestTimedOutError]
Thus, you should be able to check for the error returned in the delegate method -requestFailed: ::
- (void)requestFailed:(ASIHTTPRequest *)request { NSLog(@"Error: %@",[[request error] localizedDescription]); }
Itβs a good idea to read the source to understand how everything works. The documentation is great, but not always in sync with the source code.
source share