Post

Replies

Boosts

Views

Activity

Reply to Using NSURLSessionDownloadTask to download https file, error is reported Error Domain=kCFErrorDomainCFNetwork Code=303
Hey Eskimo, The server is Akamai CDN. We think we find the root reason, looks like the TCP window size for the request is just 2KB, it's not able to hold the data from server, then the error occurs. The small window size introduces two problems for us: 1: The error 2: The download speed is not ideal ( We captured the net traffic, looks like the window size increases very slow, 2KB -> 4KB -> 6KB, we get maximum size 400KB. But for libCurl, it provides an initial 64KB window size and bump to 128KB immediately, the max size reaches to 1700KB ). Are we able to adjust the TCP windows for background download task? I found you've answered the question 5 years ago, https://developer.apple.com/forums/thread/93736 It was not able to be controlled by developer, but not sure whether it's been enhanced right now. Thanks
Jan ’23