Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

[fix] change timeout interval #676

Merged
merged 1 commit into from
Jun 17, 2020

Conversation

steins-code
Copy link
Member

increase timeout interval to avoid wrong internet off states

@steins-code steins-code requested review from ChristianKienle and a team June 17, 2020 10:45
@steins-code steins-code self-assigned this Jun 17, 2020
Comment on lines +190 to +191
Connectivity.urlSessionConfiguration.timeoutIntervalForRequest = 15.0
Connectivity.urlSessionConfiguration.timeoutIntervalForResource = 15.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what are the old values?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5s

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5s

@@ -186,6 +187,8 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate, RequiresAppDepend
}

private func presentHomeVC() {
Connectivity.urlSessionConfiguration.timeoutIntervalForRequest = 15.0
Connectivity.urlSessionConfiguration.timeoutIntervalForResource = 15.0
enStateHandler = ENStateHandler(
initialExposureManagerState: exposureManager.preconditions(),
reachabilityService: ConnectivityReachabilityService(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, the EnStateHandler has a strong reference to ConnectivityReachabilityService and meanwhile, ConnectivityReachabilityService also keeps the strong ref to EnStateHandler. please check it.

@ChristianKienle ChristianKienle merged commit 5a9b43f into next Jun 17, 2020
@ChristianKienle ChristianKienle deleted the hotfix/increaseTimoutConnectivity branch June 17, 2020 11:56
@inf2381 inf2381 added the bug Something isn't working label Jun 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants