anacrolix / anacrolix/torrent

Allow stopping/pausing torrents

未关闭
#155 19 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Go
星标
6.1k
派生
690
平均合并
3 天 10 小时
30 天内合并 PR
12

描述

When writing my poor and dirty client I encountered a serious problem: your library by default is not able to stop/pause torrents, only remove them with `Drop()` method. I was able to overcome this by exporting [close](https://github.com/anacrolix/torrent/blob/master/torrent.go#L548) method and adding additional [bit of code](https://github.com/ecdsa521/gourmet/blob/master/lib-torrent-patch.diff) and calling it before `DownloadAll()`, and while it seems to work, I am certain this could be done better, and some torrents sometimes do not want to start again - are stuck at 0 peers/seeds.

So, let it be feature request: Please let us stop torrents in a sane, supported way.

Thanks for the great lib btw.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。