Repository navigation
Commit 810779a
committed
fix(data): re-admit swept tab on ping instead of retiring it
A frozen or background-throttled tab goes silent long enough for sweep to
remove its port from replicas. When the tab resumes and pings, the owner
saw !replicas.has(port) and answered with retired, permanently killing
the store even though the account was still signed in.
Now, when a ping arrives from a port not in replicas but the account is
still being served, the owner re-adds the port and responds with live,
matching the freeze/resume contract.1 parent a8b6bcb commit 810779a
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | | - | |
394 | | - | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
395 | 403 | | |
396 | 404 | | |
397 | 405 | | |
| |||
0 commit comments