github anacrolix/torrent v1.62.0

latest release: v1.63.0
one hour ago

What's Changed

  • fix: race condition on connIdIssued in Client.request by @Giulio2002 in #1039
  • Adds bep_0014 (local peer discovery) by @philrhc in #1047
  • fix: reject unsolicited BEP 52 hashes messages by @Sahil-4555 in #1054
  • tracker/http: handle malformed non-compact peer list entries by @Sahil-4555 in #1055
  • Implement BEP 27 (private torrents) by @guangtoutong in #1053
  • Complete BEP 6 Fast Extension: send Allowed Fast Set + record received by @guangtoutong in #1052
  • versionToChar: return byte by @milahu in #1057
  • tracker/udp: guard connIdIssued reset with mu by @awskii in #1065
  • feat: add ClientConfig.ListenPacket by @hanselime in #1063
  • possum: log ChunksReader at Debug, not Error by @404prefrontalcortexnotfound in #1073
  • storage: avoid recursive RLock in piece resource WriteTo fallback by @404prefrontalcortexnotfound in #1074
  • tracker-announcer: release dropped torrents held by pending announce updates by @Pastalikek65 in #1076
  • peer-conn-msg-writer: install wakeup channel before filling the buffer by @Pastalikek65 in #1078
  • fix(torrent): rearm the msg writer keepalive timer before parking by @aslafy-z in #1071
  • add test pinning TrackerDialContext use for http announces by @Pastalikek65 in #1080
  • announce dispatcher: don't record announce keys that couldn't be created by @Pastalikek65 in #1079
  • Try to fix "panic: is zero" when adding pure v2 torrent (#1089) by @oBusk in #1090
  • request-strategy: measure allocations with AllocsPerRun by @AskAlexSharov in #1085
  • bep14: release the exported status paths in TestDiscovery by @AskAlexSharov in #1084
  • storage: cache classic file writer handles by @Aodi in #1087
  • dialer: add SOCKS5 proxy support for peer connections by @Pastalikek65 in #1075
  • Clarify that DialForPeerConns=false disables the default dialers by @anacrolix with @Copilot in #1092
  • Add ClientConfig.StealRequestGrace: a minimum request age before stealing by @ozsay in #1095
  • storage: skip part-file promotion when disabled by @Aodi in #1086
  • Skip tracker URLs repeated within an added tier by @NotAFlightRisk in #1099
  • storage: let a file client ask for the classic file IO by @Finomosec in #1115
  • metainfo: size symlinked files by their target in BuildFromFilePath by @elimisteve in #1111
  • Request each webseed slice from one webseed at a time by @Finomosec in #1114
  • Don't panic when a dropped torrent still has webseed requests in flight by @elimisteve in #1112
  • storage: resolve default file io lazily from env by @Aodi in #1106
  • storage: add buffered piece completion wrapper by @Aodi in #1088
  • Clip file-scoped reads to the file's extent by @elimisteve in #1110
  • Don't check the piece request order before it exists by @Finomosec in #1117
  • Back off from trackers that keep failing by @Finomosec in #1116
  • storage: expose cached writer cleanup by @Aodi in #1105
  • tracker/http: limit size of tracker response bodies by @anacrolix in #1143
  • ci: stop running every workflow twice on PR branches by @anacrolix in #1147
  • Use ephemeral listen port in TestClientWithSocks5Dialer by @anacrolix in #1156
  • Skip address families the host doesn't support when listening by @anacrolix in #1157
  • Reject info bytes that don't match a v1-only infohash by @anacrolix in #1158
  • Update CHANGELOG with changes merged since v1.61.0 by @anacrolix in #1160
  • ci: cache go test results across runs by @anacrolix in #1165
  • Match unsupported-network listen errors by errno, per platform by @anacrolix in #1159
  • Hyphenate file names that use underscores outside Go-recognized suffixes by @anacrolix in #1167
  • Decode buffered peer messages without releasing the client lock by @anacrolix in #1166
  • Reject out-of-range ut_metadata piece indexes by @anacrolix in #1169
  • Remove debug log from requestStrategyPieceOrderState by @anacrolix in #1170
  • Bound peer-supplied fields that could crash or exhaust the client by @anacrolix in #1171
  • Don't retry reader wait errors on capped storage by @M0Rf30 in #1168
  • Bump golang.org/x/crypto from 0.21.0 to 0.52.0 in /tests/webseed-partial-seed by @dependabot[bot] in #1163
  • Bump github.com/gorilla/websocket from 1.5.0 to 1.5.3 in /tests/webseed-partial-seed by @dependabot[bot] in #1161
  • storage(perf): avoid O(n^2) completion lookups when marking pieces complete by @Sahil-4555 in #1155
  • peerconn: reuse chunk pool buffers for peer request data by @AskAlexSharov in #1082
  • Replace gorilla/websocket with coder/websocket by @anacrolix in #1177
  • tracker/udp: don't relock cl.mu on a connect error response by @AskAlexSharov in #1148
  • Clear deferred unlock actions after running them by @istancescu in #1129
  • Upgrade pion/dtls/v3 to v3.0.11 for CVE-2026-26014 by @anacrolix in #1178
  • Snapshot the infohash for outgoing handshakes by @anacrolix in #1179
  • Write buffered chunks in batches per client lock release by @anacrolix in #1172
  • metainfo: ignore malformed announce-list when loading by @asmanya in #1151
  • Add test for Reader.Read on a dropped torrent with storage capacity by @anacrolix in #1181
  • fix(metainfo): reject malformed info dicts that crash or exhaust the client by @Sahil-4555 in #1186
  • Release peer conn timer functions on Stop by @anacrolix in #1183
  • Add Claude Code GitHub Workflow by @anacrolix in #1187
  • fix(webtorrent): serialize announce events using wire values by @jasminsehic in #1185
  • Add tests/* modules to the root workspace by @anacrolix in #1180
  • Add AddTorrentOpts.DeferStorageOpen and Torrent.OpenStorage by @anacrolix in #1182
  • bencode: don't allocate a string's claimed length before reading it by @Sahil-4555 in #1188
  • ci: skip Claude Code Review on fork PRs by @anacrolix in #1189
  • Don't expect hashless v2 pieces in the piece request order by @mikluko in #1195
  • Don't crash when a magnet source returns info that doesn't decode by @anacrolix in #1196
  • Encode empty WebSocket tracker offers as JSON arrays by @jasminsehic in #1192
  • Add fuzz targets for network-facing parsers, ready for OSS-Fuzz by @anacrolix in #1197
  • Clean up closed WebRTC peer connections by @jasminsehic in #1191
  • tracker/shared: make AnnounceEvent marshaling bounds-safe and consistent by @anacrolix in #1199
  • storage: batch file and completion checkpoints by @Aodi in #1103
  • Announce torrent changes without waiting for the next regular announce by @skunkie in #1123
  • Document that a provided DefaultStorage is not closed by the Client by @M0Rf30 in #1125
  • Stop the request order scan at the first unwanted piece by @skunkie in #1124
  • Don't report the hashing read's length limit as a short write by @Finomosec in #1132
  • Don't panic dropping a torrent whose info failed to set by @Finomosec in #1134
  • Remove leftover log of every HTTP scrape URL by @Finomosec in #1141
  • Add Torrent.RemoveWebSeeds by @Finomosec in #1131
  • Release the client lock when verifying a piece of a closed torrent by @junkerderprovinz in #1145
  • CI: cache and retry macOS FUSE cask installs by @anacrolix in #1198
  • Look up the tracker client before releasing the client lock (rebased #1128) by @anacrolix in #1200
  • Reduce streaming request contention by @nyakaspeter in #1113

New Contributors

Full Changelog: v1.61.0...v1.62.0

Don't miss a new torrent release

NewReleases is sending notifications on new releases.