summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Test that we can't cancel a lookupJesper Jensen2025-07-182-23/+56
|
* Send the error back to the clientJesper Jensen2025-07-181-12/+15
|
* Unify the error handlingJesper Jensen2025-07-181-10/+8
|
* Add a simple API for lookupsJesper Jensen2025-07-1812-98/+775
|
* Only save config when there are worthy changesJesper Jensen2025-07-039-17/+37
|
* Add metric for lookup stateJesper Jensen2025-07-034-0/+17
|
* Rework when a lookup is considered completeJesper Jensen2025-07-024-34/+43
| | | | | | | 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 keys SMHJesper Jensen2025-06-291-0/+1
|
* Free the nodeid labelJesper Jensen2025-06-291-0/+1
|
* Print the invalid dest_lenJesper Jensen2025-06-231-1/+1
|
* Add metric for peers fetched from tableJesper Jensen2025-06-213-0/+14
| | | | | It would be nice to know a little bit about how useful we are to the swarm.
* Lower load factor limitJesper Jensen2025-06-211-1/+1
|
* Fix the expire hashmap remove codeJesper Jensen2025-06-212-27/+42
|
* Correct duplicate checkJesper Jensen2025-06-192-2/+1
| | | | | | 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.
* Don't copy entries that are emptyJesper Jensen2025-06-181-2/+3
|
* Add a debug printout of collisionJesper Jensen2025-06-181-1/+17
|
* Discard the request when there's no timeout funcJesper Jensen2025-06-151-1/+1
|
* Time out lookup requests tooJesper Jensen2025-06-151-3/+6
|
* Add content-type to metrics pageJesper Jensen2025-06-141-0/+1
|
* Discard lookup responses when it's completedJesper Jensen2025-05-112-3/+35
|
* Give nodes a little more timeout timeJesper Jensen2025-05-112-3/+3
|
* Handle error from lookupJesper Jensen2025-05-111-1/+8
|
* Add metric for discarded packetsJesper Jensen2025-05-113-0/+14
|
* Decrement requests in flight on clearJesper Jensen2025-05-101-11/+10
| | | | That's a bug
* Run the lookup once in a whileJesper Jensen2025-05-102-3/+9
|
* Run the lookup on startupJesper Jensen2025-05-101-2/+1
|
* Reintroduce the workpool size metricJesper Jensen2025-05-101-0/+4
|
* Remove the routing table rebuildJesper Jensen2025-05-103-19/+0
|
* Rebuild the rounting table on startupJesper Jensen2025-05-103-0/+19
|
* Transfer the id after loading itJesper Jensen2025-05-073-0/+7
|
* Also check for unitialized lookupJesper Jensen2025-05-061-2/+2
|
* Add metric for wakeup timeJesper Jensen2025-05-063-3/+26
|
* Reset the expire time of routing table on startupJesper Jensen2025-05-064-7/+17
|
* Also count current expired hashes in the nextJesper Jensen2025-05-051-2/+1
|
* Expose the hash table size as a metricJesper Jensen2025-05-043-0/+12
|
* Remove the duplicate resize hackJesper Jensen2025-05-041-5/+1
| | | | | | | | It turns out this problem also included a bunch of other data corruption issues. I don't really know how that got in there, but I don't think this was a data-structure issue. We should revert to an assert to crash hard. We now have some checks that should give us a warning closer to when the corruption happens next time.
* Use atomic-rename trick to avoid clobbering stateJesper Jensen2025-05-041-1/+4
|
* Check that the load is accurateJesper Jensen2025-05-041-1/+4
|
* time_t is apparently signed?Jesper Jensen2025-05-041-4/+2
|
* Extract the expire metric outJesper Jensen2025-05-041-8/+9
|
* Add metric to track next hash expireJesper Jensen2025-05-043-4/+23
|
* Add some check for expiry timeJesper Jensen2025-05-044-2/+16
|
* Support for longer transaction IDsJesper Jensen2025-05-041-3/+3
|
* Remove unused metricJesper Jensen2025-05-042-11/+0
|
* Remove some noisy debug tracingJesper Jensen2025-05-041-6/+0
|
* Add some code to assert that there are no dupesJesper Jensen2025-05-041-0/+25
|
* Drop duplicated peer entriesJesper Jensen2025-05-041-1/+5
| | | | | Apparently it's somehow possible for us to duplicate the peer entry. While we figure out how, let's just drop them instead of crashing.
* Set the metrics AFTER initializing SMHJesper Jensen2025-05-041-1/+1
|
* Refactor lookup init and add routing table metricJesper Jensen2025-05-048-48/+118
| | | | | | | 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-263-64/+47
|