Commit graph

37 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
d7e06468c3 http: quit if any worker thread quits 2024-02-03 22:38:05 +01:00
Joakim Frostegård
97688ed074 udp: disallow announce requests with port value of 0 2024-02-02 14:08:08 +01:00
Joakim Frostegård
405bbaca93 udp: improve statistics structs
- Now, workers don't need to keep track of which atomic usize
  to update
- Additionally, prometheus now gets separate information per
  socket worker
2024-02-02 13:39:46 +01:00
Joakim Frostegård
5c2cd9a719 Update CHANGELOG 2024-01-29 22:29:44 +01:00
Joakim Frostegård
352194e0bd http: avoid heap allocation for torrents with few peers; refactor 2024-01-27 10:58:03 +01:00
Joakim Frostegård
3b22e9d829 Update CHANGELOG 2024-01-25 23:51:38 +01:00
Joakim Frostegård
63ae98f67c http: index peer map by IP and port instead of IP and peer id 2024-01-24 22:54:13 +01:00
Joakim Frostegård
75c1402394 Update CHANGELOG 2024-01-20 09:43:39 +01:00
Joakim Frostegård
1a6b4345d4 udp: remove thingbuf in favor of crossbeam channel
thingbuf didn't have obvious performance advantages and is a lot less
mature. Furthermore, it doesn't support anything like crossbeam
Receiver::try_iter, which is prefereable now that announce responses
can be sent to any socket worker.
2024-01-20 09:41:07 +01:00
Joakim Frostegård
e77c9f46e7 udp: store torrents with few peers without an extra heap alloc 2024-01-20 09:40:09 +01:00
Joakim Frostegård
0eaa4475e2 udp: index peers by packet src ip and provided port instead of peer_id 2024-01-04 17:04:17 +01:00
Joakim Frostegård
3d9a35d376 Update CHANGELOG 2024-01-01 17:22:36 +01:00
Joakim Frostegård
ba8bdd6ae6 udp: harden ConnectionValidator 2023-12-26 00:19:47 +01:00
Joakim Frostegård
0c4140165b udp: reuse response channel mem, add backpressure, faster peer extract 2023-12-10 12:07:38 +01:00
Joakim Frostegård
923b3637e8 http: allow disabling TLS, allow reverse proxies, general fixes 2023-11-17 18:16:29 +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
Joakim Frostegård
99647a323a http: reload tls config on SIGUSR1 2023-10-24 18:44:49 +02:00
Joakim Frostegård
6a23ef9103 ws: reload tls config on SIGUSR1 2023-10-24 18:36:56 +02:00
Joakim Frostegård
3835da22ac ws: update simd-json to v0.12 2023-10-18 23:24:53 +02:00
Joakim Frostegård
6675126d08 ws: add prometheus peer client metrics 2023-06-14 11:09:23 +02:00
Joakim Frostegård
1ddac59fee Update CHANGELOG 2023-06-07 13:41:20 +02:00
Joakim Frostegård
48ccec034e Bump version to 0.8.0, update CHANGELOG accordingly 2023-03-17 18:51:41 +01:00
Joakim Frostegård
fcdcccdc78 Update CHANGELOG 2023-03-15 23:34:26 +01:00
Joakim Frostegård
b10b277fea Update CHANGELOG 2023-02-26 16:58:59 +01:00
Joakim Frostegård
66ce936a12 Update CHANGELOG 2023-02-25 23:00:54 +01:00
Joakim Frostegård
b5d5b70d91 Update CHANGELOG 2023-01-18 22:03:30 +01:00
Joakim Frostegård
a892465c54 ws_load_test: exclusively use TLS 1.3 2022-11-12 14:32:50 +01:00
Joakim Frostegård
2153c3037f
Update CHANGELOG.md (#104) 2022-11-12 14:09:14 +01:00
Joakim Frostegård
cc3e1ae1b5 CHANGELOG: improve structure, reword some items 2022-11-01 18:27:29 +01:00
Joakim Frostegård
82122da762 udp: in bandwidth statistics, take headers etc into account 2022-11-01 18:13:15 +01:00
Joakim Frostegård
10da379375
Update CHANGELOG.md 2022-10-11 15:53:12 +02:00
Joakim Frostegård
749add3fc8 Update CHANGELOG 2022-09-25 12:09:33 +02:00
Joakim Frostegård
e5ffedc10c Update CHANGELOG 2022-09-25 11:45:59 +02:00
Joakim Frostegård
65a8c9d6ff Use Rust 1.64 workspace inheritance 2022-09-25 11:40:43 +02:00
Joakim Frostegård
e6c7b2d23a Update CHANGELOG 2022-09-20 21:49:59 +02:00
Joakim Frostegård
04d15a9bd2 Add CHANGELOG 2022-09-20 21:39:31 +02:00