mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 09:45:31 +00:00
ws: remove peer from all torrent maps when connection is closed
This commit is contained in:
parent
b30da1a930
commit
720ceacf99
5 changed files with 134 additions and 17 deletions
10
TODO.md
10
TODO.md
|
|
@ -20,13 +20,9 @@
|
|||
* stagger cleaning tasks?
|
||||
|
||||
* aquatic_ws
|
||||
* remove peer from all torrent maps when connection is closed
|
||||
* store `Vec<InfoHash>` in ConnectionReference, containing all used
|
||||
info hashes. When connection is closed, send
|
||||
InMessage::ConnectionClosed or similar to request workers.
|
||||
Storing PeerId in ConnectionReference will also be necessary, as
|
||||
well as making sure clients only use a single one. Alternatively,
|
||||
a HashMap<PeerId, Vec<InfoHash>> can be used for storage.
|
||||
* Can peer IP address change after connection has been established
|
||||
due to some kind of renegotition? It would cause issues.
|
||||
* Add cleaning task for ConnectionHandle.announced_info_hashes?
|
||||
* RES memory still high after traffic stops, even if torrent maps and connection slabs go down to 0 len and capacity
|
||||
* replacing indexmap_amortized / simd_json with equivalents doesn't help
|
||||
* SinkExt::send maybe doesn't wake up properly?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue