Undocumented timeout interval on NSMutableURLRequest

Originator:kishyr
Number:rdar://11462941 Date Originated:16 May 2012
Status:Duplicate/10412199 Resolved:
Product:iOS SDK Product Version:5.1.1 and below
Classification:Documentation bug Reproducible:Yes
 
Summary:
The documentation for NSMutableURLRequest doesn't state the minimum timeout for POST requests with a body on iOS.

Steps to Reproduce:
Create an NSMutableURLRequest using the POST method and set a body on the object, then set the -setTimeoutInterval: method to 30 seconds. Test. After 30 seconds, nothing happens.

Expected Results:
After 30 seconds, the NSMutableURLRequest object fails and returns a timed-out NSError.

Actual Results:
Nothing happens.

Regression:
iOS 5.1.1 and below

Notes:
The documentation doesn't state that the timeout has a minimum of 240 seconds ONLY when NSMutableURLRequest is created on iOS and is being set using POST and has a message body attached.  Please either state this in the documentation, or allow us to manually set the timeout interval on POST requests.

See: https://devforums.apple.com/message/108087
Posted by eskimo1 (2nd post)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!