From eaa42a26b7ce54fc6a0a457aa5014dc3479e9525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Sun, 12 Apr 2020 12:35:05 +0200 Subject: [PATCH] Update TODO --- TODO.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/TODO.md b/TODO.md index 6659138..9f42c89 100644 --- a/TODO.md +++ b/TODO.md @@ -1,8 +1,12 @@ # TODO ## aquatic -* Lock connections and torrents together? Maybe don't stop collecting - requests if mutex is locked? +* Use hashbrown HashMap for faster hasher (or try SeaHash?) +* 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. +* Add config variable like "handler_max_requests" (default 1024?) +* Shorter timeout on handler channel collector (1ms?) * 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.