summaryrefslogtreecommitdiffstats
path: root/src/proto.h
Commit message (Collapse)AuthorAgeFilesLines
* Only save config when there are worthy changesJesper Jensen2025-07-031-0/+1
|
* Rework when a lookup is considered completeJesper Jensen2025-07-021-1/+1
| | | | | | | Keep track of outstanding requests sent as part of a lookup and rely on those individual request timeouts to signal the end of the lookup as a whole. This also makes sure we have the lookup around for the entire duration of all downstream requests.
* Give nodes a little more timeout timeJesper Jensen2025-05-111-1/+1
|
* Refactor lookup init and add routing table metricJesper Jensen2025-05-041-0/+8
| | | | | | | I think it would be nice to see the detailed routing table occupancy. I've added a metric that exposes the current occupancy of each bucket. That should provide me some insight into the current distribution of nodes and if we need to find a way to keep the closer buckets alive.
* Add a first approximation of a lookup algorithmJesper Jensen2025-04-161-1/+19
| | | | | | | | | | | | | | This isn't really "correct" but it's probably going to work. It's a rough implementation of the Kademlia lookup algorithm, with the modification that we don't keep track of anything behind the frontier. We are therefore counting on peers being ok with us potentially sending them the "same" request multiple times. If they respond in a reasonable time, the double request rate _should_ be minimal, but that of course carries the risk that an already overloaded peer would get even more queries. I don't know. It's a first try at something. I need to see it work before I write it off completely.
* I don't knowJesper Jensen2025-04-121-18/+27
|
* I don't rememberJesper Jensen2025-04-121-3/+17
|
* Increase payload sizemainflushJesper Jensen2021-10-271-1/+1
|
* Add find_node queryJesper Jensen2021-10-161-2/+2
|
* Add timeout handlingJesper Jensen2021-10-021-12/+11
|
* Add timeoutJesper Jensen2021-09-251-5/+22
|
* Add general testsJesper Jensen2021-09-191-0/+44