summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
11 hoursshort writes reset the fd to OT_CLIENT_TIMEOUT_SEND. It was set to 'forever' beforeDirk Engling
11 hoursWhen sorting/unique-ing client provided info_hashes, the memcpy's src and dest might be identical, so use memmoveDirk Engling
11 hoursPrevent amplification attacks, only send id mis-match errors for sensible packets lengthsDirk Engling
12 hoursClamp poll backend to 0 workers on error, not 1Dirk Engling
12 hoursdynamic accesslist fifo now created 0600 and only errors out if the fifo didn't already existDirk Engling
13 hoursDon't push the outbuf for zstd chunks on errorsDirk Engling
13 hoursAdd helper to pack uint32 in network byte orderDirk Engling
13 hoursAdd helpers to parse and generate udp packets and give them named sizes and offsetsDirk Engling
16 hoursSimplify UDP scraper and prevent an incomplete 75th hash from being processed, adhering to the BEP nowDirk Engling
16 hoursEnsure one byte in the reply buffer for the terminatorDirk Engling
16 hoursParser now rejects negative port numbersDirk Engling
2026-11-12Stop forcing 64 bit variables on 32 bit targets where a long would do just fineDirk Engling
2026-11-10Bump version to v2.2.1v2.2.1Dirk Engling
2026-11-10fix mandoc linter flagged bugsDirk Engling
2026-11-09Add memory access pattern overview to the DESIGN documentDirk Engling
2026-11-09Move EVENT_COMPLETED out of the bucket lock, as the eventual syslog may be blocking (even if it's unlikely)Dirk Engling
2026-11-08Bump version to v2.2.0v2.2.0Dirk Engling
2026-11-08Panic when not able to start the accesslist workers.Dirk Engling
2026-11-08Fix one potential OOB read when parsing the config fileDirk Engling
2026-11-08Silence x86 warnings, cast char before handing it to isspaceDirk Engling
2026-11-08trackerlogic_deinit resets its per-bucket counter so shutdown no longer corrupts g_torrent_countDirk Engling
2026-11-08Retire the busy network tracker. /24 networks don't say anything anymore in 2026 and in v6 it was broken from the beginningDirk Engling
2026-11-08Fix minor format string issuesDirk Engling
2026-11-08Silence leak checker. On exit trackerlogic frees the global workstructDirk Engling
2026-11-08Silence leak detector. On exit remove the ongoing deflate bufferDirk Engling
2026-11-08panic when we can't install essential worker threadsDirk Engling
2026-11-07Unify 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.
2026-11-07Add a knob to help reducing memory consumption. This time: empty torrents may expire soonerDirk Engling
2026-11-07Fix s24s stats to ensure no unallocated vector is dereferenced. Drive-by fix for the ip= scanner in the http parserDirk Engling
2026-11-07Start 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
2026-11-06Bump version to 2.1.1v2.1.1Dirk Engling
2026-11-06Fix a theoretical bug where a short request packet yields an oob readDirk Engling
2026-11-06fix a theoretical bug where a shrinking realloc failure would leave a vector with pointer NULL and size > 0Dirk Engling
2026-11-06take -pie out of macos hardening build flagsDirk Engling
2026-11-06Fix an accesslist reload issue where an empty-but-present changeset after a reload could potentially walk a NULL arrayDirk Engling
2026-11-06If an inline handler closed the connection on error, the cookie may have become invalid. Stop processing thenDirk Engling
2026-11-06Also drop supplementary groups on startupDirk Engling
2026-11-06To silence leak checkers, properly deinit fullscrape writers when zlib is used, in case opentracker stops mid-creationDirk Engling
2026-11-06Enable RELRO everywhere than macosDirk Engling
2026-11-06Add hardening parameters to the default buildsDirk Engling
2026-11-06Silence an unused return warningDirk Engling
2026-11-06Fix: livesync watermark used sizeof(ot_peer) which is a byte. Clamping on copy length nowDirk Engling
2026-11-06Gives urlencoded_parse a destination boundDirk Engling
2026-11-06Add a wall clock helper so that statedumps can be written and re-readDirk Engling
2026-11-06Do not offset the null pointer of an empty peer vectorDirk Engling
2026-11-06Bound what load_state will accept for an ageDirk Engling
2026-11-06List WANT_KEEPALIVE option in the MakefileDirk Engling
2026-11-06Stop reading a connection a worker has taken overDirk Engling
2026-11-05Bump release version to 2.1.0v2.1.0Dirk Engling
2026-11-05Explain the cleaner exception in the wait mechanicsDirk Engling