New bug showing up when torrent is downloading super fast

This commit is contained in:
Igor Katson 2023-11-20 01:43:58 +00:00
parent 4a331d97c9
commit a9794de37e
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
5 changed files with 1869 additions and 5 deletions

View file

@ -1,9 +1,11 @@
- [ ] 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
- [ ] use some concurrent hashmap e.g. flurry or dashmap
- [x (partial)] per-peer stats
- [x] use some concurrent hashmap e.g. flurry or dashmap
- [x] tracing instead of logging. Debugging peers: RUST_LOG=[{peer=.*}]=debug
test-log for tests
- [ ] reopen read only is bugged:
expected to be able to write to disk: error writing to file 0 (""The.Creator.2023.D.AMZN.WEB-DLRip.1.46Gb.MegaPeer.avi"")
someday:
- [ ] cancellation from the client-side for the lib (i.e. stop the torrent manager)