udp: store torrents with few peers without an extra heap alloc

This commit is contained in:
Joakim Frostegård 2024-01-20 09:40:09 +01:00
parent d8bd964a57
commit e77c9f46e7
4 changed files with 269 additions and 138 deletions

View file

@ -21,6 +21,8 @@
* Index peers by packet source IP and provided port, instead of by peer_id.
This prevents users from impersonating others and is likely also slightly
faster for IPv4 peers.
* Store torrents with up to two peers without an extra heap allocation for the
peers.
* Remove support for unbounded worker channels
* Add backpressure in socket workers. They will postpone reading from the
socket if sending a request to a swarm worker failed