lukeredpath/LRResty — Issue #19: synchronus request just hangs
Author: arloan
Created: 2011-10-28 02:41:46+00:00
State: open

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.