Commit graph

271 commits

Author SHA1 Message Date
Joakim Frostegård
7f01f4024a Upgrade hashbrown and indexmap crates 2023-07-30 20:32:30 +02:00
Joakim Frostegård
0204b6fcc2 ws: support serving metrics on peer id prefixes 2023-06-14 11:36:08 +02:00
Joakim Frostegård
6675126d08 ws: add prometheus peer client metrics 2023-06-14 11:09:23 +02:00
Joakim Frostegård
8734855c49 Upgrade metrics, metrics-exporter, tungstenite & async-tungstenite 2023-06-03 18:03:51 +02:00
Joakim Frostegård
a0255ff919 Upgrade socket2 to v0.5 2023-04-10 00:49:55 +02:00
Joakim Frostegård
4a6fbc6df0 Update async-tungstenite to v0.20 2023-04-10 00:29:58 +02:00
Joakim Frostegård
b609f77be9 Update rustls to 0.21, futures-rustls to 0.24 2023-04-10 00:27:37 +02:00
Joakim Frostegård
45e28cc39a Update glommio to v0.8
This enables removing membarrier fix
2023-03-15 23:50:36 +01:00
Joakim Frostegård
07eac06a36 Enable prometheus by default, update README 2023-02-26 12:10:12 +01:00
Joakim Frostegård
b42d55b003 Replace indexmap-amortized with plain (ahash) indexmap 2023-02-25 22:37:54 +01:00
Joakim Frostegård
c46f42b98f ws: fix log message typo 2023-01-18 21:48:02 +01:00
Joakim Frostegård
da1ec6b5e1 ws: add worker index data to metrics, fix incorrect key 2023-01-18 21:41:44 +01:00
Joakim Frostegård
f87e649e60 ws: fix metric update in handle_announce_request 2023-01-18 20:00:34 +01:00
Joakim Frostegård
20d1bd73ec ws: improve docs for MetricsConfig 2023-01-17 21:33:59 +01:00
Joakim Frostegård
ac4f2ade5d ws: remove unused MetricsConfig::active 2023-01-17 21:33:24 +01:00
Joakim Frostegård
56fafda234 ws: add torrent count metrics 2023-01-17 21:24:02 +01:00
Joakim Frostegård
32253a37df ws: prometheus: store ip version (v4/v6) for connections and messages 2023-01-17 21:06:34 +01:00
Joakim Frostegård
8b7c3c481c ws: add metrics for number of peers 2023-01-17 20:51:12 +01:00
Joakim Frostegård
3ac12b947f ws: add prometheus support (active connections, requests, responses) 2023-01-17 20:27:43 +01:00
Joakim Frostegård
3a6101a02d Remove unused dependencies (ws: "either", http_protocol: "rand) 2023-01-10 15:51:15 +01:00
Joakim Frostegård
5ed876f934 ws: don't close connection when receiving ping message 2023-01-10 15:11:33 +01:00
Joakim Frostegård
569e437f7b ws socket worker: replace an expect with error return 2023-01-03 19:06:27 +01:00
Joakim Frostegård
d53d0a64e6 Upgrade tungstenite to 0.18, async-tungstenite to 0.19 2023-01-03 18:45:02 +01:00
Joakim Frostegård
16effc74a3 ws socket worker: replace an unwrap with expect 2023-01-03 18:34:39 +01:00
Joakim Frostegård
14a801f4d4 ws socket worker: replace unwrap with error return 2023-01-03 18:27:56 +01:00
Joakim Frostegård
a04fab43fb Upgrade async-tungstenite to version 0.18 2022-11-12 14:57:21 +01:00
Joakim Frostegård
9ace8f53b8 Upgrade hashbrown to version 0.13 2022-11-12 14:37:53 +01:00
Joakim Frostegård
e0c4a4eaf7 ws: allow peers to use multiple PeerIds, but only one per torrent 2022-10-09 22:21:06 +02:00
Joakim Frostegård
b6287d12e4 ws, http: name threads properly and include indices 2022-09-25 12:36:20 +02:00
Joakim Frostegård
65a8c9d6ff Use Rust 1.64 workspace inheritance 2022-09-25 11:40:43 +02:00
Joakim Frostegård
c76d7442e2 Use regular (ahash) IndexMap for PeerMaps 2022-08-06 16:53:49 +02:00
Joakim Frostegård
c0ed0eb7db
Merge pull request #86 from greatest-ape/more-compact-peers
Reduce ValidUntil size; reduce size of various ws structs; improve aquatic_http_protocol
2022-08-06 12:09:41 +02:00
Joakim Frostegård
fcf18c845f Reduce ValidUntil size; reduce size of various ws structs 2022-08-01 14:15:06 +02:00
Joakim Frostegård
9b2c5b97df ws: add logging in create_tcp_listener 2022-07-23 17:35:11 +02:00
Joakim Frostegård
b79636730c ws: add some info level logging 2022-07-19 23:45:15 +02:00
Joakim Frostegård
7255202268 ws: add error message context when loading certificate files 2022-07-19 17:30:58 +02:00
Joakim Frostegård
7b06bf8736 ws: don't attempt to parse TLS files when running without TLS 2022-07-19 17:29:13 +02:00
Joakim Frostegård
355f3e04c6 Update ws code comments; update TODO.md 2022-07-19 17:01:07 +02:00
Joakim Frostegård
a62b2033a5 ws: avoid X-Forwarded-For parsing since we only need to know IPv4/IPv6 2022-07-19 16:12:00 +02:00
Joakim Frostegård
3b94b8e588 WIP: ws: parse X-FORWARDED-FOR headers 2022-07-19 00:56:27 +02:00
Joakim Frostegård
88971cd870 ws: rename enable_http_health_check to enable_http_health_checks 2022-07-18 23:29:45 +02:00
Joakim Frostegård
a16ce91d46 ws: make TLS optional, allow HTTP health checks without TLS only 2022-07-18 23:23:36 +02:00
Joakim Frostegård
018f32e9e9 ws: add optional HTTP 200 response for GET /health without TLS 2022-07-18 22:09:34 +02:00
Joakim Frostegård
720ceacf99 ws: remove peer from all torrent maps when connection is closed 2022-07-05 13:13:53 +02:00
Joakim Frostegård
b30da1a930 ws: store peer_id and announced info hashes in ConnectionReference 2022-07-05 12:03:51 +02:00
Joakim Frostegård
cedf0b61ca Exit with error message on unrecognized config keys 2022-07-05 11:26:46 +02:00
Joakim Frostegård
12fc8bcf1e ws: rename request workers to swarm workers 2022-07-04 11:55:53 +02:00
Joakim Frostegård
fb2794643d udp, common: rename request workers to swarm workers 2022-07-04 11:49:39 +02:00
Joakim Frostegård
945ff41ef2 Update crate descriptions 2022-06-27 22:44:45 +02:00
Joakim Frostegård
cc1eda80a7 Update rustls-pemfile to v1.0.0 2022-05-10 23:16:04 +02:00