In iOS 5.1 and previous versions, the timeout interval set when constructing the request body was ignored for one reason.
iOS 6 seems to attract attention and more accurately describes the timeout interval, so just set the interval to a value large enough to give time to complete the request.
NSMutableURLRequest *request=[[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString: url] cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:60.0];
Nirma source share