Skip to content

Commit 6c86972

Browse files
jgrahamOrKoNwhimboo
authored
Fix timeouts configuration (#1802)
This refactors the way that timeout configuration is used in the spec, and fixes several bugs, but does not otherwise have intentional normative changes. The main change is the creation of a "timeouts configuration" struct that is owned by the session. A new struct is created when the timeouts are changed (including during capabilities processing) and this fixes a number of confusing cases where the "JSON deserialize" algorithm was linked in place of the more specific algorithm for reading the timeout data. In addition a new "timer" class is created with a flag that's set when the required time has elapsed. This is now used in all places where we wait up to a timeout, and we assume we're able to wait for the flag to change, or check the current value of the flag, as required. Fixing this required fixing many cases where it was assumed that timeouts couldn't be null. Co-authored-by: Alex Rudenko <OrKoN@users.noreply.github.com> Co-authored-by: Henrik Skupin <mail@hskupin.info>
1 parent 44031be commit 6c86972

File tree

1 file changed

+385
-276
lines changed

1 file changed

+385
-276
lines changed

0 commit comments

Comments
 (0)