<feed xmlns='http://www.w3.org/2005/Atom'>
<title>opentracker/src/trackerlogic.c, branch v2.2.0</title>
<subtitle>An open and free bittorrent tracker
</subtitle>
<id>https://erdgeist.org/gitweb/opentracker/atom?h=v2.2.0</id>
<link rel='self' href='https://erdgeist.org/gitweb/opentracker/atom?h=v2.2.0'/>
<link rel='alternate' type='text/html' href='https://erdgeist.org/gitweb/opentracker/'/>
<updated>2026-11-08T19:15:33Z</updated>
<entry>
<title>trackerlogic_deinit resets its per-bucket counter so shutdown no longer corrupts g_torrent_count</title>
<updated>2026-11-08T19:15:33Z</updated>
<author>
<name>Dirk Engling</name>
<email>erdgeist@erdgeist.org</email>
</author>
<published>2026-11-08T19:15:33Z</published>
<link rel='alternate' type='text/html' href='https://erdgeist.org/gitweb/opentracker/commit/?id=fb1e6bfb548ac6791bd8e7a01c8d2faeb94143cd'/>
<id>urn:sha1:fb1e6bfb548ac6791bd8e7a01c8d2faeb94143cd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Silence leak checker. On exit trackerlogic frees the global workstruct</title>
<updated>2026-11-08T19:06:49Z</updated>
<author>
<name>Dirk Engling</name>
<email>erdgeist@erdgeist.org</email>
</author>
<published>2026-11-08T19:06:49Z</published>
<link rel='alternate' type='text/html' href='https://erdgeist.org/gitweb/opentracker/commit/?id=6bec0aef4f42885bcdef31c633ebc9e5264a4615'/>
<id>urn:sha1:6bec0aef4f42885bcdef31c633ebc9e5264a4615</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Unify the peerlists for v4 and v6</title>
<updated>2026-11-07T18:39:01Z</updated>
<author>
<name>Dirk Engling</name>
<email>erdgeist@erdgeist.org</email>
</author>
<published>2026-11-07T18:39:01Z</published>
<link rel='alternate' type='text/html' href='https://erdgeist.org/gitweb/opentracker/commit/?id=589cb500fa5a6df13fa9634d0071922ec11fce17'/>
<id>urn:sha1:589cb500fa5a6df13fa9634d0071922ec11fce17</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Start to opentracker's memory requirements</title>
<updated>2026-11-07T02:55:27Z</updated>
<author>
<name>Dirk Engling</name>
<email>erdgeist@erdgeist.org</email>
</author>
<published>2026-11-07T02:55:27Z</published>
<link rel='alternate' type='text/html' href='https://erdgeist.org/gitweb/opentracker/commit/?id=bbfd674e08c6b1fa4081f9c678fd220bead749d7'/>
<id>urn:sha1:bbfd674e08c6b1fa4081f9c678fd220bead749d7</id>
<content type='text'>
* 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
</content>
</entry>
<entry>
<title>Add a wall clock helper so that statedumps can be written and re-read</title>
<updated>2026-11-06T13:24:04Z</updated>
<author>
<name>Dirk Engling</name>
<email>erdgeist@erdgeist.org</email>
</author>
<published>2026-11-06T13:24:04Z</published>
<link rel='alternate' type='text/html' href='https://erdgeist.org/gitweb/opentracker/commit/?id=355c8ae57d582974f4f6a4ba42f635f2253b84a7'/>
<id>urn:sha1:355c8ae57d582974f4f6a4ba42f635f2253b84a7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bound what load_state will accept for an age</title>
<updated>2026-11-06T07:28:16Z</updated>
<author>
<name>Dirk Engling</name>
<email>erdgeist@erdgeist.org</email>
</author>
<published>2026-11-06T07:28:16Z</published>
<link rel='alternate' type='text/html' href='https://erdgeist.org/gitweb/opentracker/commit/?id=83cd3bb631131a116f024cfacfd687e8c4855fd1'/>
<id>urn:sha1:83cd3bb631131a116f024cfacfd687e8c4855fd1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Answer blacklisted torrent announces with an empty packet, that carries a re-announce timeout</title>
<updated>2026-11-05T17:18:45Z</updated>
<author>
<name>Dirk Engling</name>
<email>erdgeist@erdgeist.org</email>
</author>
<published>2026-11-05T17:18:45Z</published>
<link rel='alternate' type='text/html' href='https://erdgeist.org/gitweb/opentracker/commit/?id=c6732a03cbf0efa815e8a857af8118878c053af0'/>
<id>urn:sha1:c6732a03cbf0efa815e8a857af8118878c053af0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Initialise memory before it's pointers are used in case of a failed allocation</title>
<updated>2026-11-05T15:34:50Z</updated>
<author>
<name>Dirk Engling</name>
<email>erdgeist@erdgeist.org</email>
</author>
<published>2026-11-05T15:34:50Z</published>
<link rel='alternate' type='text/html' href='https://erdgeist.org/gitweb/opentracker/commit/?id=63bbb9320d101f17e1dc75d35746f5cdff285668'/>
<id>urn:sha1:63bbb9320d101f17e1dc75d35746f5cdff285668</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Start live sync where main knows the state file is in</title>
<updated>2026-11-05T15:27:38Z</updated>
<author>
<name>Dirk Engling</name>
<email>erdgeist@erdgeist.org</email>
</author>
<published>2026-11-05T15:27:38Z</published>
<link rel='alternate' type='text/html' href='https://erdgeist.org/gitweb/opentracker/commit/?id=90038ad8f32926b5e0ee30e3ed1f1cd1a9d22a93'/>
<id>urn:sha1:90038ad8f32926b5e0ee30e3ed1f1cd1a9d22a93</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Stop the cleaner before the modules it still needs</title>
<updated>2026-11-05T15:04:38Z</updated>
<author>
<name>Dirk Engling</name>
<email>erdgeist@erdgeist.org</email>
</author>
<published>2026-11-05T15:04:38Z</published>
<link rel='alternate' type='text/html' href='https://erdgeist.org/gitweb/opentracker/commit/?id=ab538c872d1e1f79feecaa0f85d0ff62216e78e4'/>
<id>urn:sha1:ab538c872d1e1f79feecaa0f85d0ff62216e78e4</id>
<content type='text'>
</content>
</entry>
</feed>
