IOS Rocks
IOS Rocks

Reputation: 2127

NSURLRequest timeout interval default time

Can you share your answer to me for

  1. NSURLRequest default timeoutInterval time
  2. NSMutableURLRequest default timeoutInterval time

Upvotes: 13

Views: 20777

Answers (5)

Dave
Dave

Reputation: 91

FYI - the interval changed with iOS 6.0 from 240 to 60.

https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1414063-timeoutinterval?language=objc

Upvotes: 2

Alejandro Iván
Alejandro Iván

Reputation: 4051

For reference, the default timeout interval is defined within the header file for NSURLRequest, by the side of +requestWithURL:

NSURLRequest timeoutInterval

It explicitly says it's 60 seconds.

Upvotes: 1

无夜之星辰
无夜之星辰

Reputation: 6158

Maybe you can do a small test then you would konw:enter image description here

Upvotes: 8

tonyspiff
tonyspiff

Reputation: 161

The default cache policy is NSURLRequestUseProtocolCachePolicy and the default timeout interval is 60 seconds.

NSURLRequest Class Reference

Upvotes: 16

IOS Rocks
IOS Rocks

Reputation: 2127

For both NSURLRequest & NSMutableURLRequest default timeoutInterval time is 60 secs

Upvotes: 20

Related Questions