diff options
| author | Adam Soltys <[email protected]> | 2026-11-01 21:29:27 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-11-01 21:29:27 -0700 |
| commit | 84460457619857ea6cb678bb0a7b2918c222014a (patch) | |
| tree | 9f3b2e66f719086b03b66650232c5ef5723252b6 /src/live.js | |
| parent | 89277914f2f67ddd9d2edd0adcdffc9d8727fc0f (diff) | |
| download | coinosv3-84460457619857ea6cb678bb0a7b2918c222014a.tar.gz coinosv3-84460457619857ea6cb678bb0a7b2918c222014a.zip | |
Back from the background, the app checks its relay sockets before it asks them anything: one tiny REQ to each; a socket that answers is kept, one that doesn't is closed and redialed at once, its subscriptions refired by the library with since set to the last event each saw, and only then do the DMs resubscribe and the feed refresh. "No new notes in Following since 11:35? It's 9 pm now … it loaded more posts, it just took a while" (Adam, 2026-11-01): after hours in the background a phone's tab is thawed with every socket reading OPEN and long dead on the network, so the catch-up sent on resume vanished, and the library found a dead socket out only after its 29 s ping and that ping's 20 s timeout, then waited 10 s to redial — a minute or more before the backlog arrived through the refired subscriptions. tools/resume-wake-test.js freezes a fake relay's sockets, posts while the app "sleeps", and has the post on screen 2.7 s after resume (never within 15 s before). Also: Primal's "too many concurrent REQs" notice no longer cools the relay off for 30 s at every boot — it serves every REQ past its twenty anyway (measured 60 at once: 60 EOSEs, 12 notices), so the cool-off only lost us its answers while the relay lists, profiles and the feed all asked at once; a CLOSED with that reason still countsHEADmaster
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VMan6TFgisGKUDhdStLUvs
Diffstat (limited to 'src/live.js')
0 files changed, 0 insertions, 0 deletions
