apple / swift-openapi-urlsession

URLSession transport for Swift OpenAPI Generator.
https://swiftpackageindex.com/apple/swift-openapi-urlsession/documentation
Apache License 2.0
159 stars 31 forks source link

Avoid double continuation resume in URLSession delegate in corner case #28

Closed simonjbeaumont closed 11 months ago

simonjbeaumont commented 11 months ago

Motivation

If the request completes with error after the response has already been received we can potentially resume a continuation twice. This was shown by running some of the tests in long loop.

Modifications

Result

Test Plan