It seems I am running into the same problem. I need to download multiple files from my server, and even when setting the max number of connections per host to 2.
let config = URLSessionConfiguration.background(withIdentifier: "background-download")
config.sessionSendsLaunchEvents = true
config.httpMaximumConnectionsPerHost = 2
config.timeoutIntervalForRequest = 120
let session = URLSession(configuration: config, delegate: self, delegateQueue: nil)
all requests are hitting our server at the same time.
Is there any update on that issue?
Topic:
App & System Services
SubTopic:
Networking
Tags: