Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A timeout via the session is wrongly stored as cancelled in the storage #160

Open
brototyp opened this issue Feb 28, 2019 · 1 comment
Open
Labels
bug Something isn't working

Comments

@brototyp
Copy link
Member

brototyp commented Feb 28, 2019

Reproduction

  • Configure the URLSession in the example application to a very low timeout
    lazy var urlSession: URLSession = {
        var configuration = URLSessionConfiguration.default
        configuration.timeoutIntervalForRequest = 1.0
        return URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
    }()
  • Configure the Network Link Conditioner to 100% packet loss
  • Perform the api.ipify.org request
  • After the request fails, check the request in the InspectorFloret

Expected behavior

  • The InspectorFloret shows it as having a timeout

Observer behavior

  • The InspectorFloret shows this request as being cancelled
@brototyp brototyp added the bug Something isn't working label Feb 28, 2019
@brototyp
Copy link
Member Author

Honestly ... I am not sure if it is a bug from out side or from apples side. If I try to reproduce this issue and break into the public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) { function, the error there states, that the task was cancelled. What to you two think about this bug, @pstued & @Shukuyen ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant