NSURLRequest timeoutInterval is forced to 240 secs. if it has a body
| Originator: | toutankharton | ||
| Number: | rdar://11613238 | Date Originated: | 07-Jun-2012 12:04 PM |
| Status: | Open | Resolved: | |
| Product: | iPhone SDK | Product Version: | 5 |
| Classification: | Other Bug | Reproducible: | Always |
Summary:
NSURLRequest timeoutInterval is forced to 240 secs. if it has a body
Steps to Reproduce:
Attached a project with this code in application:didFinishLaunchingWithOptions:
NSURL *url = [NSURL URLWithString:@"http://www.apple.com"];
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:url];
request.timeoutInterval = 30;
NSLog(@"%.f", request.timeoutInterval); // display 30
request.HTTPBody = [@"body" dataUsingEncoding:NSUTF8StringEncoding];
NSLog(@"%.f", request.timeoutInterval); // display 240
Expected Results:
timeoutInterval has been set to 30, NSURLRequest should respect that, or at least document the behavior
Actual Results:
timeoutInterval is always 240 if there is a body
Regression:
Notes:
This has been confirmed by an Apple dev : https://devforums.apple.com/message/108087#108087
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!