The new NSURLSessionConfiguration timeout property does not seem to work when the session is configured to run in the background (via a call to backgroundSessionConfiguration).
Does anyone know if this is true?
Code snippet:
NSURLSessionConfiguration *sessionConfig = [NSURLSessionConfiguration backgroundSessionConfiguration:bgSessionConfigIdentifier]; sessionConfig.HTTPMaximumConnectionsPerHost = 1; sessionConfig.timeoutIntervalForRequest = 60;
Do I need to do anything extra for a timeout?
source share