I am trying to set the request timeout as 120 for the NSMutableURLRequest, but it is ignoring. The request timout fails within 90 secs. Can any one tell me how to set the request timeout for the NSMutableURLRequest ?? . I have gone through some links stating that about the default timeout value as 240 secs. I can't find any apple document describing about that . Can anyone help me ?
NSMutableURLRequest* urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:serverURL]];
[urlRequest setHTTPMethod:@"GET"];
[urlRequest setTimeoutInterval:120];
_urlConnection = [[NSURLConnection alloc] initWithRequest:urlRequest delegate: self];