Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

amalshah71

macrumors member
Original poster
Code:
NSMutableURLRequest *theRequest=[NSMutableURLRequest requestWithURL:[NSURL URLWithString:url] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:40];

In the code above a URL Request is formed with a 'timeoutInterval' of 40 seconds

What i understand is 'timeoutInterval' would have it's effects in following cases:
1) When server is down
2) When server would take time > value set for 'timeoutInterval'
3) When there is no means of commnunicating with outside world (i.e. no GPRS/wifi connection availability)

Though only 1st point stands true

Why won't the 'request time out' would occur when there is no GPRS/wifi?

Or is it something else that i am missing?

amal
 
I never found that timeout value to work that reliably. Instead I've used a standard timer to cancel the download manually, which worked perfectly.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.