0.2.0
Session persistence
- Saved session state under
.elixir_torrent/state/{info_hash}.term(relative toFile.cwd!/0) - On
download/1, an existing session is loaded and the bitfield is verified against disk before resuming remove/2deletes the session file;delete_data: truealso removes downloaded files
Graceful shutdown API
stop_and_serialize/1— stop piece downloads, disconnect peers (BEP 3), send trackerevent=stopped, persist session, then stop the torrent processstop_all_and_serialize/0— same for every active torrentlist/0— returns info hashes for all running torrent processes
Peer disconnect
- Peers receive BEP 3 cancel / not interested / choke before TCP connections close
- Used during shutdown so peers are notified cleanly
Install via Hex: {:elixir_torrent, "~> 0.2.0"}