Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Issue where all requests timeout until the app is restarted #320

Kabal opened this Issue · 5 comments

3 participants

Tom Wilson blackpawn James Munro
Tom Wilson

Has anyone else experienced an issue where all ASIHTTPRequests will start to time out constantly, until the app is restarted?

I'm not really doing anything fancy, really just:

__block ASIHTTPRequest request = [[[ASIHTTPRequest alloc] initWithURL:[NSURL URLWithString:@""]] autorelease];
[request setRequestMethod:@"POST"];
[request addRequestHeader:@"User-Agent" value:[NSString stringWithFormat:@"NOW-iOS %@", [self appVersion]]];
[request addRequestHeader:@"Content-Type" value:@"application/json; charset=utf-8"];
[request addRequestHeader:@"Accept" value:@"application/json, text/javascript, */
[request setShouldContinueWhenAppEntersBackground:YES];

[request setFailedBlock:^(void) {
[request setCompletionBlock:^(void) {
[request startAsynchronous];

If i constantly force close and restart the app, maybe 1 in15-20 times it will be stuck in a state where ALL requests time out. The only way to get out of that state seems to be to quit the app and try again.

I can mostly only reproduce this on 3G, but I may have had it happen in Wifi before.

Deleted user

I've had this problem before. Are you using the TestFlight SDK by any chance?

Tom Wilson

Yes! I had already narrowed this down to the test flight SDK being the cause. Glad it's not just me...


ah hit by this too. :/ anyone find fix or workaround?

Tom Wilson

I tried replacing ASI with AFNetworking - it suffers the same fate.

I ended up just removing the TestFlight SDK. It wasn't doing that much for me anyway except for the crash reports which I have since replaced with Crashlytics.

James Munro

I was suffering with this issue - resorted to removing the TestFlight SDK too. They still haven't fixed it after several months now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.