Torrents

torrent notes

  • use magnet links that reference public tracker dht hashes
  • crawl dht or peer exchange for discovery
  • supports private torrents
  • invented by Bram Cohen
  • used for linux isos, game updates, etc
  • bencoded for .torrent file format
  • v2 standard
    • file hashes for cross swarm seeding are sha256 (32 bytes) instead of sha1 (20 bytes)
    • urn:btmh is v2 magent uri
      • urn:btih is v1
  • clients
    • transmission
      • single threaded io
      • set env var TR_CURL_SSL_NO_VERIFY=1 to disable invalid SSL cert checking
  • magent link can have ws for webseed
    • needs xs linked torrent or non ws peer for metadata
  • min request size 16 KiB