summaryrefslogtreecommitdiffstats
path: root/src/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Only save config when there are worthy changesJesper Jensen2025-07-031-1/+4
|
* Add metric for lookup stateJesper Jensen2025-07-031-0/+2
|
* Rework when a lookup is considered completeJesper Jensen2025-07-021-4/+14
| | | | | | | 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.
* Free the nodeid labelJesper Jensen2025-06-291-0/+1
|
* Print the invalid dest_lenJesper Jensen2025-06-231-1/+1
|
* Correct duplicate checkJesper Jensen2025-06-191-1/+0
| | | | | | I though it was a cool feature that C allowed you to implicitly memcmp statically sized arrays. It turns out it doesn't, it was just comparing their pointers which are obviously not equal.
* Run the lookup once in a whileJesper Jensen2025-05-101-1/+7
|
* Run the lookup on startupJesper Jensen2025-05-101-2/+1
|
* Remove the routing table rebuildJesper Jensen2025-05-101-1/+0
|
* Rebuild the rounting table on startupJesper Jensen2025-05-101-0/+1
|
* Transfer the id after loading itJesper Jensen2025-05-071-0/+1
|
* Reset the expire time of routing table on startupJesper Jensen2025-05-061-0/+3
|
* Use atomic-rename trick to avoid clobbering stateJesper Jensen2025-05-041-1/+4
|
* Add some check for expiry timeJesper Jensen2025-05-041-0/+1
|
* Remove some noisy debug tracingJesper Jensen2025-05-041-6/+0
|
* 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