mirror of
https://github.com/urbit/shrub.git
synced 2024-12-29 23:23:52 +03:00
e1419d1787
%contact-store is responsible for sending updates about contacts, eg profile color. When it hears an update, it fans that out to its subsribers, unless that update is stale. If you reguarly fan out stale updates, then they reverberate across the network indefinitely -- we call this "echoing". To cut off this echoing, all edits have a timestamp, and we consider any updates from before this timestamp to be stale. Additions are separate from edits, and for them we instead do a value comparison on the contact -- if it didn't change, we consider the update stale. The problem with this scheme is that if an addition and edit happen one after the other in quick succession, you might have the following sequence: - add comes in with timestamp T1 - edit comes in with timestamp T2 after T1 - we hear an echo of the add, and that errantly applies because it passes our "did the contact actually change" check - we hear an echo of the edit, which applies because T2 is after T1 - GOTO 3 Each time we apply the stale update, we fan that out to our subscribers, and if any two hosts subscribe to each other, this will loop. This may even loop unconditionally because the ship that made the profile changes seems like it might not recognize that those changes didn't come from itself, so it sends them to all the groups it's in. If so, that's an important issue to fix. Fixes tloncorp/landscape-issues#1442 |
||
---|---|---|
.. | ||
btc-wallet | ||
landscape | ||
chat-cli.hoon | ||
chat-hook.hoon | ||
chat-store.hoon | ||
chat-view.hoon | ||
clock.hoon | ||
contact-hook.hoon | ||
contact-pull-hook.hoon | ||
contact-push-hook.hoon | ||
contact-store.hoon | ||
contact-view.hoon | ||
demo-pull-hook.hoon | ||
demo-push-hook.hoon | ||
demo-store.hoon | ||
dm-hook.hoon | ||
file-server.hoon | ||
glob.hoon | ||
graph-pull-hook.hoon | ||
graph-push-hook.hoon | ||
graph-store.hoon | ||
group-pull-hook.hoon | ||
group-push-hook.hoon | ||
group-store.hoon | ||
group-view.hoon | ||
hark-chat-hook.hoon | ||
hark-graph-hook.hoon | ||
hark-group-hook.hoon | ||
hark-invite-hook.hoon | ||
invite-hook.hoon | ||
invite-store.hoon | ||
invite-view.hoon | ||
launch.hoon | ||
metadata-hook.hoon | ||
metadata-pull-hook.hoon | ||
metadata-push-hook.hoon | ||
metadata-store.hoon | ||
notify.hoon | ||
observe-hook.hoon | ||
pool-group-hook.hoon | ||
s3-store.hoon | ||
sane.hoon | ||
weather.hoon |