-
Notifications
You must be signed in to change notification settings - Fork 114
AddressBook: discuss/implement multiple subscription files #337
Comments
In today's meeting we discussed an interesting solution:
This doesn't address where we save inserted addresses that are saved from an address helper since they currently are simply inserted into Issues that arise from this design:
Temporary solution:
Really all of this seems messy so I think we should push hard for #385. |
Noticed upon reviewing CID 151160/2/6, control was never allowed to reach the loading of publishers if a subscription was already loaded at startup - thus publishers were never loaded. In addition to publishers not being loaded, the subscriber would always be in a "downloading" state (though it was never downloading) - thus allowing the thread to sleep unnecessarily upon shutdown. Fixes monero-project#445 monero-project#446 References monero-project#305 monero-project#337 monero-project#263
- Adds simple debug logging - Reflects on the fact that update timer is called before loading publishers References monero-project#447 monero-project#305 monero-project#337
Note: #453 means that, on Win32/64 (only), the currently packaged |
Ensures publishers are available to subscriber if client tunnels attempt to load a subscription before the address book implementation "starts". Note: current implementation will download/save subscription file if it's ever missing (even if the file is removed during router run-time) References monero-project#305 monero-project#337
I really like the ideas from 1. 2. and 3, and I've been thinking of ways to implement de-duplication for addresses. What do you think of:
Then if we wanted to mirror Java I2P's republish feature, the user could opt to save full subscription files in a separate folder. Unique entries from republished subscriptions would still be appended to |
You'll have to watch for the following:
Concatenate all non-host.txt subscriptions into private_hosts.txt? That defeats the purpose my point 2 in previous comment.
For signaling that a file's been written? This is wholly unnecessary if that's the case. I can comment further once I know what you are trying to accomplish.
What do you mean by "republished"? Startup will fetch the latest subscriptions from publishers anyway or else the subscriptions will grow stale. Again, appending to private_hosts.txt defeats the purpose of private_hosts. Private means don't touch unless user explicitly touches it or wants us to touch it (yes, we're still talking about files 🤣). |
Here is my current design plan, after digesting your previous comment, and working on the code: Update:
|
NOTICE: THIS ISSUE HAS BEEN MOVED TO GitLab. Please continue the discussion there. See #1013 for details. |
By submitting this issue, I confirm the following:
Place an X inside the bracket to confirm
First, see #336. Then, consider java i2p's naming spec.
For this ticket, we should discuss if we're to have separate subscription files because we currently only use
hosts.txt
. Also, if we hand edit the file, it will be overridden upon next fetch from a any publisher.With a little design work, we can easily implement other files that won't be overridden. There's also the question of whether we want to have separate files for separate publishers.
Referencing #305 and #296
The text was updated successfully, but these errors were encountered: