summaryrefslogtreecommitdiff
path: root/src/main.c
AgeCommit message (Collapse)Author
2025-05-07Transfer the id after loading itJesper Jensen
2025-05-06Reset the expire time of routing table on startupJesper Jensen
2025-05-04Use atomic-rename trick to avoid clobbering stateJesper Jensen
2025-05-04Add some check for expiry timeJesper Jensen
2025-05-04Remove some noisy debug tracingJesper Jensen
2025-05-04Set the metrics AFTER initializing SMHJesper Jensen
2025-05-04Refactor lookup init and add routing table metricJesper Jensen
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.
2025-04-26Add end timeout to lookup functionJesper Jensen
2025-04-16Add a first approximation of a lookup algorithmJesper Jensen
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.
2025-04-14Flush config more often to recover from crashesJesper Jensen
We sometimes crash on bad input. While I fix that, it makes sense to at least be able to recover
2025-04-12Add a docker containerJesper Jensen
2025-04-12Add prometheus monitoringJesper Jensen
2025-04-12I don't knowJesper Jensen
2025-04-12I don't rememberJesper Jensen
2021-10-16Flush in mainJesper Jensen
2021-10-05Add getclient timeoutJesper Jensen
2021-10-02Add timeout handlingJesper Jensen
2021-09-25Add timeoutJesper Jensen
2021-09-19Add general testsJesper Jensen
2021-09-05Add error supportJesper Jensen
2021-09-03Add ping supportJesper Jensen
2021-08-29Add formal benc cursorJesper Jensen
2021-08-28Initial fanout implementedJesper Jensen
2021-06-22Move the comment into routingJesper Jensen
2021-06-17Add tests and test runningJesper Jensen
2021-06-16INITIAL COMMITJesper Jensen