summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
10 daysRetire the busy network tracker. /24 networks don't say anything anymore in 2026 and in v6 it was broken from the beginningDirk Engling
11 daysUnify the peerlists for v4 and v6Dirk Engling
This commit finishes what started with unifying v4 and v6 trackers, from then on, torrents carried a peer list per family, with obvious redundancies. With the race to save memory, these became burdening enough that now these peerlist pointers have been moved into a single struct, holding both v4 and v6 peers in their respective ot_vectors, so the per- torrent cost shrunk by another pointer's size. Each peerlist also lost its peer count cache, as in most cases, it's trivial to load it directly from the ot_vector's entry count. The seed counts that were kept per family only to be aggregated later for every consumer, are also merged now. Total savings depend on the tracker's actual load. In some corner cases, where only one address family dominates the torrents, we actually use a few bytes more in the ot_vector for the absent family, but even that mostly becomes noise: before it actually adds to the memory load, the peer payload will be the deciding factor. Most wins are on what often is experienced on trackers: A long tail of abandoned torrents now needs eight fewer bytes, slipping into a smaller allocation unit on glibc's allocator.
11 daysAdd a knob to help reducing memory consumption. This time: empty torrents may expire soonerDirk Engling
11 daysFix s24s stats to ensure no unallocated vector is dereferenced. Drive-by fix for the ip= scanner in the http parserDirk Engling
12 daysStart to opentracker's memory requirementsDirk Engling
* peer lists for v4 and v6 are now lazily allocated and, more importantly, will be freed once there are no more peers * The downloaded count is now per torrent and not per peer list anymore, moving in what was alignment loss, anyway * The (now) per torrent downloaded and the per peer list peer and seed count shrunk from size_t to uint32_t * A helper guards accesses to the peer and seed count to prevent null pointer dereferences * The base time also shrank from time_t to uint32_t, minutes since the epoch currently fits in 25 bits
12 daysFix a theoretical bug where a short request packet yields an oob readDirk Engling
12 daysFix an accesslist reload issue where an empty-but-present changeset after a reload could potentially walk a NULL arrayDirk Engling
12 daysFix: livesync watermark used sizeof(ot_peer) which is a byte. Clamping on copy length nowDirk Engling
12 daysGives urlencoded_parse a destination boundDirk Engling
12 daysAdd a wall clock helper so that statedumps can be written and re-readDirk Engling
13 daysBound what load_state will accept for an ageDirk Engling
13 daysStop reading a connection a worker has taken overDirk Engling
13 daysAnswer blacklisted torrent announces with an empty packet, that carries a re-announce timeoutDirk Engling
13 daysStart live sync where main knows the state file is inDirk Engling
13 daysRead the accesslist before any consumer consults itDirk Engling
13 daysFix: Restoring a state file doubled every completed countDirk Engling
13 daysTake the clock off the wallDirk Engling
13 daysClamp every elapsed time span at zero, using a set of helper functionsDirk Engling
2026-11-03Refuse to start on a listen statement that does not parseDirk Engling
2026-11-03Refuse to start on a livesync.cluster.group that is not oneDirk Engling
2026-11-03Let a user pick their cluster's own multicast groupDirk Engling
2026-11-03Let a tracker with live sync built in run without a clusterDirk Engling
2026-11-03Give the live sync worker a real workstructDirk Engling
2026-11-03Add integration tests for live syncDirk Engling
2026-11-02Retire old perl backend to the proxy, but don't delete it yetDirk Engling
2026-11-02Turn the bucket count into a knob, but keep cleaner wake-ups at a constant rateDirk Engling
2026-11-02Sweep the obsolete CVS Id keyword out of the treeDirk Engling
2026-11-02Remove tracker id from stats, as wellDirk Engling
2026-11-02Remove version string from what is reported over httpDirk Engling
2026-11-02add test for the version report fascilitiesDirk Engling
2026-11-02Prepare a versioning mechanism for the tracker that works from tarballsDirk Engling
2026-11-01Live logging networks was defunc for a while, does not work with v6, so we remove itDirk Engling
2026-11-01Add some tests for the actual trackerlogic, something I put off for too longDirk Engling
2026-11-01Add tests for the ot_mutex code, it didn't have any until nowDirk Engling
2026-10-31Make the dynamic accesslist readers release their line buffer and properly exitDirk Engling
2026-10-31Refactor ot_workqueue out of ot_mutex, no behaviour changeDirk Engling
2026-10-31Make tcp worker multithreaded, tooDirk Engling
This shamelessly steals the model established in the UDP workers, i.e. if the kernel is able to bind multiple listening sockets to the same endpoint, we will share them across threads. If it can't, all threads will accept on the same socket. The fast path handles most of the connections, only the rare case of no data yet on the socket is offloaded to the slow path (which used to be the mainloop) for completion. This scales nicely, as the higher the load is, the higher chances are that an accept happens only after the network roundtrip to the peer completes, leading to more connections that already have data waiting for us. We also consolidate the workstruct init and deinit code, preparation for later unifying all thread state structs for all protocols (mca, udc and tcp). The config file gains a per tcp connection worker count and some docs explaining what this knob buys and costs, nudging the user to either keep it 0 or dial it up to at least 2.
2026-10-31Add test for new config paramsDirk Engling
2026-10-31Add config parsers for multiple tcp socket readers and a helper to see if we can offer it on the platformDirk Engling
2026-10-30Introduce a fast path assuming that a tcp connection's payload already has arrived at accept timeDirk Engling
2026-10-30Fix idle tests in presence of an accept filterDirk Engling
2026-10-30Fix expiry tests under the new accept filtersDirk Engling
2026-10-30Defer accepts until some data actually is thereDirk Engling
2026-10-30Reduce syscalls and add helper to count themDirk Engling
2026-10-30Add an http load generatorDirk Engling
2026-10-30Check for free port in the udp integration test, also speed it up by a bitDirk Engling
2026-10-30Consolidate all tcp/http tear down into a single http_close function to prevent a rare UAF for expiring connectionsDirk Engling
2026-10-29add wake-up tester that helped figuring out how to tickle hanging udp readersDirk Engling
2026-10-29Revert last wake-up experiment. Having each udp worker wake up once a second to check if the tracker stops is wastefulDirk Engling
2026-10-28Fix a test that would over-report success rate when losing the race for cycles to the test targetDirk Engling