Fixed bugs

This commit is contained in:
Igor Katson 2023-11-18 00:20:49 +00:00
parent 6ebf2120a4
commit 2203ffe4a9
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
7 changed files with 536 additions and 44 deletions

12
TODO.md
View file

@ -1,16 +1,6 @@
- [x] Selective file downloading (mostly done)
- [x] Proper counting of how much is left, and how much is downloaded
- [x] Send bitfield at the start if I have something
- [x] use the "update_hash" function in piece checking
- [ ] signaling when file is done
- [ ] when we have the whole torrent, there's no point talking to peers that also have the whole torrent
- [ ] when we have the whole torrent, there's no point talking to peers that also have the whole torrent and keep reconnecting to them.
- [ ] per-file stats
- [ ] per-peer stats
- [x] slow peers cause slowness in the end, need the "end of game" algorithm
someday:
- [ ] cancellation from the client-side for the lib (i.e. stop the torrent manager)