summaryrefslogtreecommitdiffstats
path: root/src/peers.c
Commit message (Collapse)AuthorAgeFilesLines
* 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-191-1/+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
|
* Also count current expired hashes in the nextJesper Jensen2025-05-051-2/+1
|
* Expose the hash table size as a metricJesper Jensen2025-05-041-0/+1
|
* 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.
* 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-041-4/+12
|
* Add some check for expiry timeJesper Jensen2025-05-041-1/+8
|
* 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.
* Add current hash metricJesper Jensen2025-04-141-0/+4
| | | | | 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.
* Add prometheus monitoringJesper Jensen2025-04-121-4/+49
|
* I don't knowJesper Jensen2025-04-121-0/+5
|
* I don't rememberJesper Jensen2025-04-121-0/+110