mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic: lock connections and torrents together; optimize handler
Handler: don't stop collecting requests early unless mutex can be unlocked.
This commit is contained in:
parent
62a40317f9
commit
2779b6ec3a
5 changed files with 62 additions and 46 deletions
3
TODO.md
3
TODO.md
|
|
@ -2,9 +2,6 @@
|
|||
|
||||
## aquatic
|
||||
* `thread 'main' panicked at 'overflow when subtracting duration from instant', src/libstd/time.rs:374:9`
|
||||
* Put connections and torrent in a struct behind a commong lock. Add
|
||||
functionality for checking if mutex is unlocked before quitting to
|
||||
collect requests from channel (try_recv) up to a limit.
|
||||
* Handle Ipv4 and Ipv6 peers. Probably split state. Ipv4 peers can't make
|
||||
use of Ipv6 ones. Ipv6 ones may or may note be able to make use of Ipv4
|
||||
ones, have to check.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue