Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local peers table does not clear when the last local peer leaves #35

Closed
pfrazee opened this issue Dec 4, 2014 · 0 comments · Fixed by #44
Closed

Local peers table does not clear when the last local peer leaves #35

pfrazee opened this issue Dec 4, 2014 · 0 comments · Fixed by #44
Labels

Comments

@pfrazee
Copy link
Contributor

pfrazee commented Dec 4, 2014

The local plugin updates its state when it receives availability announcements. Because it also handles entry-expiration in that codepath, if there are no peers in the network anymore, there are no opportunities to expire old entries. This causes the last available peer to stay in the local peers table, even after disconnect.

@pfrazee pfrazee added the bug label Dec 4, 2014
pfrazee added a commit that referenced this issue Dec 6, 2014
local peers table now clears when last peer leaves (close #35)
mhfowler pushed a commit to mhfowler/ssb-server that referenced this issue Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant