Naut/include/naut
ookami125 096535292d swarm: re-announce promptly when the swarm is starved
The peer top-up loop re-announced to trackers only at the full advertised
interval (~30 min), so a torrent that dropped to a handful of peers would
sit there for up to half an hour with only the 5-minute DHT refresh to
help — looking like the re-announce system was dead.

Now, when fewer than LOW_PEER_THRESHOLD (10) peers are connected, the next
tracker announce is scheduled at the tracker's min_interval floor (never
below 60s) instead of the full interval, so a thin swarm actually tries to
recover. Once peers recover the full interval is used again. Capture the
tracker's min_interval (was being dropped) to stay announce-compliant.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 20:04:24 -04:00
..
bencode.h Initial commit: Naut-Torrent — from-scratch 10 GbE BitTorrent client 2026-06-15 12:12:00 -04:00
bitfield.h Initial commit: Naut-Torrent — from-scratch 10 GbE BitTorrent client 2026-06-15 12:12:00 -04:00
buf.h Initial commit: Naut-Torrent — from-scratch 10 GbE BitTorrent client 2026-06-15 12:12:00 -04:00
common.h nautd: block adding a torrent that would overlap existing data 2026-06-22 01:01:50 -04:00
dht.h nautd/webui: scripting, labels, settings, set-location, pause fix 2026-06-21 23:19:41 -04:00
event.h Initial commit: Naut-Torrent — from-scratch 10 GbE BitTorrent client 2026-06-15 12:12:00 -04:00
extension.h Initial commit: Naut-Torrent — from-scratch 10 GbE BitTorrent client 2026-06-15 12:12:00 -04:00
hash.h Initial commit: Naut-Torrent — from-scratch 10 GbE BitTorrent client 2026-06-15 12:12:00 -04:00
http_client.h net: add blocking HTTP/HTTPS GET client 2026-06-23 00:41:31 -04:00
list.h Initial commit: Naut-Torrent — from-scratch 10 GbE BitTorrent client 2026-06-15 12:12:00 -04:00
log.h Initial commit: Naut-Torrent — from-scratch 10 GbE BitTorrent client 2026-06-15 12:12:00 -04:00
merkle.h Initial commit: Naut-Torrent — from-scratch 10 GbE BitTorrent client 2026-06-15 12:12:00 -04:00
metainfo.h webui: replace nautctl web server with a loadable plugin 2026-06-17 00:21:48 -04:00
mpmc.h Initial commit: Naut-Torrent — from-scratch 10 GbE BitTorrent client 2026-06-15 12:12:00 -04:00
naut_plugin.h webui: replace nautctl web server with a loadable plugin 2026-06-17 00:21:48 -04:00
net.h Initial commit: Naut-Torrent — from-scratch 10 GbE BitTorrent client 2026-06-15 12:12:00 -04:00
peer.h Initial commit: Naut-Torrent — from-scratch 10 GbE BitTorrent client 2026-06-15 12:12:00 -04:00
piece.h nautd/webui: scripting, labels, settings, set-location, pause fix 2026-06-21 23:19:41 -04:00
plugin.h Initial commit: Naut-Torrent — from-scratch 10 GbE BitTorrent client 2026-06-15 12:12:00 -04:00
rc4.h Initial commit: Naut-Torrent — from-scratch 10 GbE BitTorrent client 2026-06-15 12:12:00 -04:00
rpc.h webui: replace nautctl web server with a loadable plugin 2026-06-17 00:21:48 -04:00
script.h nautd/webui: scripting, labels, settings, set-location, pause fix 2026-06-21 23:19:41 -04:00
session.h Initial commit: Naut-Torrent — from-scratch 10 GbE BitTorrent client 2026-06-15 12:12:00 -04:00
storage.h nautd/webui: scripting, labels, settings, set-location, pause fix 2026-06-21 23:19:41 -04:00
swarm.h nautd: hash-check paused torrents (check-only worker) 2026-06-22 01:22:10 -04:00
system.h Initial commit: Naut-Torrent — from-scratch 10 GbE BitTorrent client 2026-06-15 12:12:00 -04:00
tracker.h swarm: re-announce promptly when the swarm is starved 2026-06-24 20:04:24 -04:00
uring.h Initial commit: Naut-Torrent — from-scratch 10 GbE BitTorrent client 2026-06-15 12:12:00 -04:00
worker.h Initial commit: Naut-Torrent — from-scratch 10 GbE BitTorrent client 2026-06-15 12:12:00 -04:00