apple / swift-openapi-urlsession

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

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

Closed simonjbeaumont closed 10 months ago

simonjbeaumont commented 10 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