summaryrefslogtreecommitdiffstats
path: root/src/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Set the metrics AFTER initializing SMHJesper Jensen2025-05-041-1/+1
|
* Refactor lookup init and add routing table metricJesper Jensen2025-05-041-26/+3
| | | | | | | 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-4/+17
|
* Add a first approximation of a lookup algorithmJesper Jensen2025-04-161-26/+14
| | | | | | | | | | | | | | 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.
* Flush config more often to recover from crashesJesper Jensen2025-04-141-0/+3
| | | | | We sometimes crash on bad input. While I fix that, it makes sense to at least be able to recover
* Add a docker containerJesper Jensen2025-04-121-1/+3
|
* Add prometheus monitoringJesper Jensen2025-04-121-15/+77
|
* I don't knowJesper Jensen2025-04-121-22/+33
|
* I don't rememberJesper Jensen2025-04-121-13/+96
|
* Flush in mainJesper Jensen2021-10-161-1/+2
|
* Add getclient timeoutJesper Jensen2021-10-051-27/+26
|
* Add timeout handlingJesper Jensen2021-10-021-3/+21
|
* Add timeoutJesper Jensen2021-09-251-10/+50
|
* Add general testsJesper Jensen2021-09-191-469/+29
|
* Add error supportJesper Jensen2021-09-051-6/+20
|
* Add ping supportJesper Jensen2021-09-031-65/+158
|
* Add formal benc cursorJesper Jensen2021-08-291-11/+19
|
* Initial fanout implementedJesper Jensen2021-08-281-19/+341
|
* Move the comment into routingJesper Jensen2021-06-221-25/+1
|
* Add tests and test runningJesper Jensen2021-06-171-149/+2
|
* INITIAL COMMITJesper Jensen2021-06-161-0/+225