Repository navigation
Commit 2fe6d08
committed
A device counts itself online only while it says it is here
./check.sh full failed once on going_and_settled_test.dart, over the
JS relay: a device that could no longer serve as a juror still counted
itself online, after the device watching it had stopped. online()
counts this device by its own word (not silent, able to serve), and
also, by accident, from its own beat heard back: a relay sends a device
what it says, as it sends everyone, and that beat stays fresh for a
minute. It left the count only when its own "gone" came back too, and
which of two sockets a relay hands an event to first is not fixed, so
under load the watcher heard it first. A device that went quiet whose
"gone" never came back counted itself for the whole minute.
online() now leaves this device's own beats out of what it has heard:
it is here while it says so. presence_test.dart hands a device its own
beat and then makes it unable to serve, and silent: it failed before,
counting itself, and passes now.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01W92ERJ2vuziEpghjrqPe5w1 parent ee63546 commit 2fe6d08
2 files changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
248 | 252 | | |
249 | | - | |
| 253 | + | |
250 | 254 | | |
251 | 255 | | |
252 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
62 | 77 | | |
63 | 78 | | |
0 commit comments