-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR improves timeout handling in the SnapController and in the execution services, it makes a handful of changes: - Adds a timeout of `2` seconds to the `ping` request, sent to the execution environment after boot. This lets us fail more immediately if the execution environment has loaded but is non-responsive (e.g. if the execution env is down, the iframe loads a Chrome failure page, which still counts as the iframe loading). - Adds `maxInitTime` as a constructor argument allowing for better configuration of how long Snaps (and the execution environment) has in total to boot before timing out. Previously `maxRequestTime` was used for the initialization timeout. - Changes all of the error messaging around timeouts in an attempt to give more information than the previous vague error message: "The request timed out.".
- Loading branch information
1 parent
4d65e1d
commit 1acb283
Showing
5 changed files
with
78 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"branches": 91.01, | ||
"branches": 91.05, | ||
"functions": 96.56, | ||
"lines": 97.8, | ||
"statements": 97.46 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters