summaryrefslogtreecommitdiffstats
path: root/src/proto.c
Commit message (Collapse)AuthorAgeFilesLines
* Refactor lookup init and add routing table metricJesper Jensen2025-05-041-0/+30
| | | | | | | 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 end timeout to lookup functionJesper Jensen2025-04-261-52/+22
|
* Add a first approximation of a lookup algorithmJesper Jensen2025-04-161-5/+192
| | | | | | | | | | | | | | 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.
* Expose the number of keepalive pings we sendJesper Jensen2025-04-151-0/+1
|
* Don't crash on invalid dictionaryJesper Jensen2025-04-141-2/+5
|
* Use a real root routerJesper Jensen2025-04-131-2/+2
|
* Use the normal dht port and rename some metricsJesper Jensen2025-04-131-2/+3
|
* Expose the query type as a metric labelJesper Jensen2025-04-131-44/+4
|
* Add a docker containerJesper Jensen2025-04-121-0/+2
|
* Add prometheus monitoringJesper Jensen2025-04-121-22/+67
|
* I don't knowJesper Jensen2025-04-121-56/+165
|
* I don't rememberJesper Jensen2025-04-121-47/+78
|
* Increase payload sizemainflushJesper Jensen2021-10-271-1/+2
|
* Flush in mainJesper Jensen2021-10-161-5/+3
|
* Add find_node queryJesper Jensen2021-10-161-15/+5
|
* Add comment for hacky stuffJesper Jensen2021-10-051-0/+5
|
* Respond correctly no unknown query methodJesper Jensen2021-10-051-2/+13
|
* Add getclient timeoutJesper Jensen2021-10-051-93/+138
|
* Add timeout handlingJesper Jensen2021-10-021-58/+127
|
* Add timeoutJesper Jensen2021-09-251-39/+75
|
* Add general testsJesper Jensen2021-09-191-0/+519