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

Timeout setting doesn't work #37

Open
shawnmorrison opened this issue Dec 18, 2015 · 1 comment
Open

Timeout setting doesn't work #37

shawnmorrison opened this issue Dec 18, 2015 · 1 comment

Comments

@shawnmorrison
Copy link

As of the change that updated STHTTPRequest to use NSURLSession setting the timeout via setTimeoutInSeconds: does not work.

It seems that setting timeoutInterval on NSURLRequest is not respected by NSURLSession. Instead it seems setting timeoutIntervalForRequest or timeoutIntervalForResource on NSURLSessionConfiguration is necessary instead.

Also note: it seems that if a background session configuration is used then timeoutIntervalForResource is the only timeout that is respected.

This is very easy to test and confirm but for reference I was tipped off by this SO post.

@IngenicoNPSLatam
Copy link

Someboyd knows if it's gonna be solve? @shawnmorrison can u tell me how did u solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants