I am trying to find a definitive answer if it is possible to set a timeout value for using NSURLConnection in iOS 5 (I would like to set it for 30 seconds).
I have looked for past posts about this, but the information seems contradictory. For example, this message
NSURLConnection timeout?
says Apple assigns a 4 minute minimum timeout, although I cannot find Apple documentation to support this.
This publication says that the 240-day limit comes from the thread of the apple forum NSMutableURLRequest does not obey my timeoutInterval
They say that this limit is only for POST when the body is not empty. Does this mean that for GETS you can set a timeout of less than 4 minutes?
Someone commented here that this is not the case with iOS 5, however they were voted NSMutableURLRequest does not obey my timeoutInterval
And there others say other things, but in any case, most of the previous publications on this topic seem to be from a couple of years ago to iOS 5.
If there is a 4-minute limit, you need to rely on rumors to know that this is a little ridiculous if there is actually no Apple documentation.
Does anyone know the actual final situation for iOS 5.
source share