summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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-211-23/+27
|
* 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-111-1/+5
|
* Give nodes a little more timeout timeJesper Jensen2025-05-111-1/+1
|
* 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-047-26/+87
| | | | | | | 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-262-56/+39
|
* Add a first approximation of a lookup algorithmJesper Jensen2025-04-163-32/+225
| | | | | | | | | | | | | | 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.
* Reformat target generationJesper Jensen2025-04-151-2/+3
| | | | I think this reads nicer
* Expose the number of keepalive pings we sendJesper Jensen2025-04-153-1/+12
|
* Don't crash on invalid dictionaryJesper Jensen2025-04-142-6/+13
|
* 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 current hash metricJesper Jensen2025-04-143-0/+16
| | | | | It seems like it would be nice to know how many infohashes we actually know about. Let's add a guage that tells us that directly.
* Use a real root routerJesper Jensen2025-04-131-2/+2
|