summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Use the normal dht port and rename some metricsJesper Jensen2025-04-132-14/+15
|
* Expose the query type as a metric labelJesper Jensen2025-04-132-46/+6
|
* Add a docker containerJesper Jensen2025-04-124-3/+15
|
* fixup! Add prometheus monitoringJesper Jensen2025-04-121-0/+1
|
* Add prometheus monitoringJesper Jensen2025-04-1211-56/+446
|
* I don't knowJesper Jensen2025-04-1213-1391/+329
|
* I don't rememberJesper Jensen2025-04-1213-74/+1900
|
* Increase payload sizemainflushJesper Jensen2021-10-274-42/+48
|
* Flush in mainJesper Jensen2021-10-162-6/+5
|
* Add find_node queryJesper Jensen2021-10-163-19/+106
|
* Add comment for hacky stuffJesper Jensen2021-10-051-0/+5
|
* Respond correctly no unknown query methodJesper Jensen2021-10-052-2/+14
|
* Add getclient timeoutJesper Jensen2021-10-054-120/+190
|
* Add timeout handlingJesper Jensen2021-10-025-73/+168
|
* Add timeoutJesper Jensen2021-09-256-63/+158
|
* Add general testsJesper Jensen2021-09-195-484/+644
|
* Add error supportJesper Jensen2021-09-052-7/+21
|
* Add ping supportJesper Jensen2021-09-037-93/+299
|
* Add formal benc cursorJesper Jensen2021-08-294-16/+139
|
* Initial fanout implementedJesper Jensen2021-08-286-31/+647
|
* Move the comment into routingJesper Jensen2021-06-222-25/+25
|
* Add tests for routingJesper Jensen2021-06-202-4/+13
|
* Add tests and test runningJesper Jensen2021-06-174-157/+170
|
* INITIAL COMMITJesper Jensen2021-06-162-0/+233