BT engine 1.2.0: three defects, fixed at the root
We recently heard from users about two symptoms: a red-hot magnet link shows "1,600+ nodes" yet crawls; worse, speed frequently drops straight to 0 MB/s mid-download and never recovers no matter how long you wait. Following those leads, we tore our in-house BT engine erupt-bt (a standalone process built on librqbit) down to the protocol layer and found three real defects — all fixed in 1.2.0. This post walks through the root causes, the fixes, and the benchmark data.
First, a clarification: "1,600+" is not "1,600+ usable peers"
That number comes from DHT discovery: the engine asks the DHT "who has this torrent?" and counts the addresses that answer. It means "someone announced recently", not "connectable right now". We verified on this very torrent: of 687 real peers pulled from trackers, only 1.3% completed a handshake. The swarm itself is thin — a property of the torrent, and no engine can conjure seeders out of thin air. The investigation did, however, surface three genuine engine defects:
- Built-in trackers were dead weight. The old build shipped 11 public trackers, 7 of which are dead. Worse, the config channel meant to append trackers per torrent simply doesn't apply to the magnet branch — and magnets are how most users add tasks. Net effect: magnet peer discovery rested 100% on DHT alone.
- Failed peers got "parked", freezing speed at 0. The underlying library backs off failed peers with an aggressive exponential schedule: 10s, 60s, 6min, 1h... The more first-wave failures, the faster peers get shelved; once the DHT pool drains, speed flatlines at zero.
- Smaller issues: a dead-code uTP switch, ANSI escape codes polluting engine logs, and more.
Fix 1: session-level tracker injection + a fully re-screened list
1.2.0 moves tracker injection from per-torrent options up to the session level: magnets, .torrent files, and resumed tasks are all injected alike. The built-in list was rebuilt from scratch — 43 candidates tested one by one over BEP-15 UDP (real announces, real responses), keeping only the 16 alive, with an in-code note that tracker liveness drifts over time and must be re-tested at every engine upgrade.
Fix 2: forced re-announce every 300s, ending the zero-speed stall
The backoff policy belongs to the underlying library and can't be replaced outright — but it can be bypassed: the engine now force re-announces to every alive tracker every 300 seconds, continuously pulling in newly joined peers. Fresh peers carry no backoff baggage, so connection opportunities keep flowing — and speed dips fill in quickly.
Other hardening
uTP is always on now, reaching peers behind NAT/firewalls that only accept uTP and widening the connectable surface; a per-torrent peer cap of 150 prevents connection storms; and engine logs drop ANSI escape codes so on-disk logs are finally searchable.
Benchmark
On the exact magnet from the report we ran a clean 300-second test (fresh directory, zero local interference): 83.8% of the 1.2GB file downloaded, peaking at 6.22 MB/s. Every speed dip self-recovered within 10 seconds — not a single stall. The control, a healthy Ubuntu 24.04 swarm, peaked at 62.8 MB/s — engine throughput has no regression, and speed is governed purely by swarm health.
How to get it
The erupt-bt engine ships independently of the installer via our own CDN with silent hot-updates. Windows and macOS users need to do nothing: the app checks once a day while idle, and anyone with the engine installed upgrades to 1.2.0 within a day at most; new users get the latest engine the first time they enable BT downloads.