Commit graph

8 commits

Author SHA1 Message Date
Joakim Frostegård
93f8995a72 ws: quit if any worker quits 2024-02-03 22:56:08 +01:00
Joakim Frostegård
e6e663761c ws: refactor swarm worker storage code for improved readability 2024-01-25 19:35:45 +01:00
Joakim Frostegård
c32fa7cc2b Fix ws clippy warnings 2024-01-20 10:27:15 +01:00
Joakim Frostegård
5401eaf85f Run cargo clippy --fix and cargo fmt 2024-01-20 09:56:14 +01:00
Joakim Frostegård
0dae7fd533 ws protocol: remove glob exports; adjust dependent crates 2024-01-08 20:16:46 +01:00
Joakim Frostegård
d4c95d89c0 ws: swarm: remove peer ValidUntil update task, just create when needed 2024-01-08 18:54:11 +01:00
Joakim Frostegård
36954e5f48 ws: SwarmControlMessage::ConnectionClosed: use Vec for info hashes 2024-01-08 18:51:39 +01:00
Joakim Frostegård
fe5ccf6646
ws: refactor, bug fixes, improvements (#155)
- split swarm worker into two modules
- split socket worker into two modules
- keep track of which offers peers have sent and only allow matching
answers
- always clean up after closing connection
- use channel for telling connections to close
- move some logic into new ConnectionRunner struct
- use slotmap for connection reference storage
- fix double counting of error responses
- actually close connections that take too long to send responses to
- remove announced_info_hashes entry on AnnounceEvent::Stopped
2023-11-09 18:06:21 +01:00