<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mobius/hotline/tracker_test.go, branch main</title>
<subtitle>Friendship Quest remix of mobius, a hotline server in go #cli</subtitle>
<id>https://git.r.bdr.sh/mobius/atom/hotline/tracker_test.go?h=main</id>
<link rel='self' href='https://git.r.bdr.sh/mobius/atom/hotline/tracker_test.go?h=main'/>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/mobius/'/>
<updated>2025-11-25T18:31:39Z</updated>
<entry>
<title>Add TLS port field to tracker registration protocol</title>
<updated>2025-11-25T18:31:39Z</updated>
<author>
<name>Jeff Halter</name>
<email>868228+jhalter@users.noreply.github.com</email>
</author>
<published>2025-11-25T18:30:30Z</published>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/mobius/commit/?id=8ddb9bb228389b198a76d6df21de005da4fad66b'/>
<id>urn:sha1:8ddb9bb228389b198a76d6df21de005da4fad66b</id>
<content type='text'>
Repurpose the previously unused 2-byte field in the tracker protocol to advertise the server's TLS port. This allows clients to discover which servers support TLS connections.

Note: currently only the official, original, 1990's Tracker software sends this server provided 2-byte field to tracker clients.  I'm adding this to Mobius in the hope that the modern day trackers might update their behavior to match the original software, which would put these unused 2 bytes to a useful purpose.
</content>
</entry>
<entry>
<title>Fix tracker server list parsing for batched responses</title>
<updated>2025-11-25T00:52:37Z</updated>
<author>
<name>Jeff Halter</name>
<email>868228+jhalter@users.noreply.github.com</email>
</author>
<published>2025-11-25T00:52:37Z</published>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/mobius/commit/?id=ab16c7d82c8381a4df80fef4b2fe81e7ff23dad8'/>
<id>urn:sha1:ab16c7d82c8381a4df80fef4b2fe81e7ff23dad8</id>
<content type='text'>
The tracker protocol splits large server lists into batches, with each
batch preceded by a ServerInfoHeader. Previously, GetListing only read
the initial header and failed when encountering subsequent headers
mid-stream, causing the scanner to misinterpret header bytes as server
record data.

Changes:
- Refactored GetListing to use bufio.Reader instead of bufio.Scanner
  to handle heterogeneous data (headers and server records)
- Added readServerRecord helper function for sequential reading
- Renamed ServerInfoHeader.SrvCountDup to BatchSize for clarity
- Added comprehensive documentation explaining the batching protocol
- Removed unused serverScanner function and tests
- Added table tests covering multiple batch scenarios

The BatchSize field indicates the number of servers in the current
batch, while SrvCount indicates the total across all batches.
</content>
</entry>
<entry>
<title>Fix failing test, replace use of reflect package with assert</title>
<updated>2024-07-19T20:43:09Z</updated>
<author>
<name>Jeff Halter</name>
<email>868228+jhalter@users.noreply.github.com</email>
</author>
<published>2024-07-19T20:43:09Z</published>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/mobius/commit/?id=50c837fe10df05b9cc08decb1add122fb935e8fa'/>
<id>urn:sha1:50c837fe10df05b9cc08decb1add122fb935e8fa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refactoring, cleanup, test backfilling</title>
<updated>2024-06-24T23:23:56Z</updated>
<author>
<name>Jeff Halter</name>
<email>868228+jhalter@users.noreply.github.com</email>
</author>
<published>2024-06-24T23:23:56Z</published>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/mobius/commit/?id=a2ef262a164fc735b9b8471ac0c8001eea2b9bf6'/>
<id>urn:sha1:a2ef262a164fc735b9b8471ac0c8001eea2b9bf6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refactor TrackerRegistration Read to io.Reader interface</title>
<updated>2024-06-09T21:05:15Z</updated>
<author>
<name>Jeff Halter</name>
<email>868228+jhalter@users.noreply.github.com</email>
</author>
<published>2024-06-09T02:25:12Z</published>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/mobius/commit/?id=9a75b7cbfa6fa37ed10732bbff8b722d652a1cdc'/>
<id>urn:sha1:9a75b7cbfa6fa37ed10732bbff8b722d652a1cdc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Handler tracker list errors</title>
<updated>2023-05-28T16:39:33Z</updated>
<author>
<name>Jeff Halter</name>
<email>868228+jhalter@users.noreply.github.com</email>
</author>
<published>2023-05-28T16:39:33Z</published>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/mobius/commit/?id=04f402736027ced9bfbbf628136dc4872b671555'/>
<id>urn:sha1:04f402736027ced9bfbbf628136dc4872b671555</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refactor and backfill tests for tracker listing</title>
<updated>2022-06-30T00:08:10Z</updated>
<author>
<name>Jeff Halter</name>
<email>868228+jhalter@users.noreply.github.com</email>
</author>
<published>2022-06-30T00:08:10Z</published>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/mobius/commit/?id=8ff2b66d1583b38298dfa415588df89631023695'/>
<id>urn:sha1:8ff2b66d1583b38298dfa415588df89631023695</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix hardcoded port in tracker registration</title>
<updated>2022-06-07T23:00:29Z</updated>
<author>
<name>Jeff Halter</name>
<email>868228+jhalter@users.noreply.github.com</email>
</author>
<published>2022-06-07T23:00:29Z</published>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/mobius/commit/?id=40414f9295dd301f1c714bc3067392b7cc8f8427'/>
<id>urn:sha1:40414f9295dd301f1c714bc3067392b7cc8f8427</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move code to hotline dir</title>
<updated>2021-07-28T21:21:52Z</updated>
<author>
<name>Jeff Halter</name>
<email>868228+jhalter@users.noreply.github.com</email>
</author>
<published>2021-07-29T01:21:52Z</published>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/mobius/commit/?id=22c599abc18895f73e96095f35b71cf3357d41b4'/>
<id>urn:sha1:22c599abc18895f73e96095f35b71cf3357d41b4</id>
<content type='text'>
</content>
</entry>
</feed>
