Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

synchronus request just hangs #19

Open
arloan opened this issue Oct 28, 2011 · 5 comments
Open

synchronus request just hangs #19

arloan opened this issue Oct 28, 2011 · 5 comments

Comments

@arloan
Copy link

arloan commented Oct 28, 2011

i.e LRRestyClient get: never get returned (all other synchronized request methods do).

build env: SL 10.6.8
xcode 4.0
target: iOS 4.3.2 (simulator, not tested in real box)

code:

  • (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
    NSLog(@"%s: begin.", FUNCTION);
    LRRestyResponse * lr = [[LRResty client] get:@"http://www.google.com/ncr"];

NSLog(@"r: %@", [lr asString]);

.... (omitted)

}

get an console output like '-[UFBXMobileAppDelegate application:didFinishLaunchingWithOptions:]: begin.' and the main window does not showup.

PS. async calls work fine, except that I cannot block the thread committed the async calls, or else the async calls do not run.

@lukeredpath
Copy link
Owner

Could you please try this using the latest HEAD version and get back to me.

@arloan
Copy link
Author

arloan commented Mar 6, 2012

I've confirmed that the problem is still there with the lastest downloadable version.

@siuying
Copy link

siuying commented Apr 5, 2012

i can confirm the issue, at (0.11.0).

@siuying
Copy link

siuying commented Apr 6, 2012

i think my case are cause by i running unit test, in the main app it has no issue, and only in test it block and hangs (both sync and async calls).

I test with ASIHTTPRequest and it seems it is okay in sync mode and hang in async mode. It seems some operation of their async code are working in main thread, and my test running in main thread and blocking them to proceed properly.

@pcperini
Copy link

I can confirm this issue, using the .framework file from the Mac Nightly Build, dated Fri Dec 09 00:01:55 +0000 2011.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants