Connection Timeout vs Read Timeout

Is there any way to differentiate the "connection" timeout from the "read" timeout?

I would need to configure the "connection" timeout to 10 sec., but I don't want to modify the "read" timeout (60 sec. by default).

What type of timeout specifically does this refer to? "URLSessionConfiguration.timeoutIntervalForRequest"

Reading documentation, I am not clear on it.

Thanks in advance.


What type of timeout specifically does this refer to? "URLSessionConfiguration.timeoutIntervalForRequest"

In general this is the timeout for the running network dataTask in the session. For example, if you have a NSURLSessionDataTask created as a GET request for https://apple.com; by default, this task will only wait 60 seconds before closing the connection as a timeout. If new data comes in during this time the timer will restart.


Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com

So, can we differentiate between read and connection timeout?

Connection Timeout vs Read Timeout
 
 
Q