Closed
Description
Previous ID | SR-2681 |
Radar | None |
Original Reporter | klassobanieras (JIRA User) |
Type | Bug |
Status | Resolved |
Resolution | Done |
Environment
swift-3.0-GM-CANDIDATE
Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-34-generic x86_64)
Additional Detail from JIRA
Votes | 0 |
Component/s | Foundation |
Labels | Bug |
Assignee | @pushkarnk |
Priority | Medium |
md5: feb4926bfe15a9d387c1117e8fb471ba
Issue Description:
Currently, a URLSession data task will timeout if the entire transfer takes longer than session.configuration.timeoutIntervalForRequest.
However, per https://developer.apple.com/reference/foundation/urlsessionconfiguration/1408259-timeoutintervalforrequest this timeout value should measure the longest period of inactivity allowed, NOT the total duration.
Failing test case here: https://github.com/mike-ferenduros/swift-corelibs-foundation/blob/more-urlsession-tests/TestFoundation/TestNSURLSession.swift#L186