Repository navigation
v0.8.0
mtorrent v0.8.0
Released 2026-09-25 — compared against v0.7.2 (2026-09-20)
17 non-merge commits, 29 files changed (+1,531 / −558).
Highlights
UPnP / port mapping
- Graceful shutdown of UPnP mappings.
utils::upnpwas refactored to encourage graceful shutdown, and DHT now removes its port mapping on shutdown (cc45dde,c637160,208337d). - Robustness. UPnP operations gained retries and timeouts (
c2babdc).
DHT
- Invalid remote addresses are now filtered out (
54d6c6a). - Additional stats are collected on the DHT UDP socket, and stats are logged on drop (
2788e72).
Core connections
- Do not attempt to connect to peers advertising unspecified / broadcast / link-local addresses (
2246f13). - Inbound connections are now allowed during the post-disconnect sleep window (
7fceab3). - Connection logging was cleaned up and made more informative (
3a94717).
uTP / transport
- Reduced logging noise in
base::utp::handle(47c9838). - No longer logs an error when the connection is closed by the upstream
task (53aecc1).
Tests & CI
- Nextest per-test timeout reduced from 60 s to 30 s (
ed52243). test_complete_torrentinbound TCP and uTP tests were made less flaky (242dda3,fc3af66), and peers now bind to any available port (877b974).
Internal refactors
mtorrent::utils:config.rsanddisk.rswere moved / reorganised (ef784df).- Version bumped to 0.8.0 (
fdd92aa).
Full commit list
cc45dde utils::upnp: refactor to encourage graceful shutdown
c637160 dht: remove port mapping on shutdown
c2babdc upnp: add retries and timeouts
ed52243 nextest: reduce timeout from 60s to 30s
fc3af66 test_complete_torrent: make inbound utp tests less flaky
242dda3 test_complete_torrent: make inbound tcp tests less flaky
ef784df mtorrent::utils: mv config.rs disk.rs + misc
54d6c6a dht: filter out invalid remote addrs
2246f13 core::connections: don't connect to peers at unspecified/broadcast/link-local addrs
877b974 test_complete_torrent: use any available ports for peers
7fceab3 core::connections: allow inbound connect during post-disconnect sleep
47c9838 base::utp::handle: reduce logging noise
3a94717 core::connections: improve logging
2788e72 dht::udp: add more stats and log on drop
53aecc1 base::utp: don't log error when connection closed by upstream task
fdd92aa Bump version to 0.8.0
208337d upnp: async port mapping removal on shutdown