Commit graph

10 commits

Author SHA1 Message Date
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
36954e5f48 ws: SwarmControlMessage::ConnectionClosed: use Vec for info hashes 2024-01-08 18:51:39 +01:00
Joakim Frostegård
4c831643b1 ws: remove ineffective backpressure implementation 2024-01-08 18:41:24 +01:00
Joakim Frostegård
188da135ab ws: add Connection backpressure channel instead of spawning tasks
Seems to fix memory leak issue
2024-01-07 11:27:03 +01:00
Joakim Frostegård
3042539101 update ws dependencies as well as http rustls dependency 2024-01-07 10:40:50 +01:00
Joakim Frostegård
071f088d8b ws: socket worker: wait for interal close message in priority queue 2024-01-06 00:13:18 +01:00
Joakim Frostegård
579fcb2140 ws: don't yield unnecessarily in run_in_message_loop, improve logging 2024-01-05 23:13:31 +01:00
Joakim Frostegård
7b2a7a4f46 ws: improve socket worker connection code 2023-11-17 00:15:41 +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