You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
As of the change that updated STHTTPRequest to use NSURLSession setting the timeout via
setTimeoutInSeconds:
does not work.It seems that setting
timeoutInterval
onNSURLRequest
is not respected by NSURLSession. Instead it seems settingtimeoutIntervalForRequest
ortimeoutIntervalForResource
onNSURLSessionConfiguration
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.
The text was updated successfully, but these errors were encountered: