Commit graph

36 commits

Author SHA1 Message Date
Joakim Frostegård
e5a1461613
udp: include ConnectionId in PendingScrapeResponseMap key (#42) 2021-12-28 03:16:15 +01:00
Joakim Frostegård
a208775104
Include documentation in printed config files (#41)
* Start work on printing toml config with comments

* WIP: toml_config: extract default values for fields

* WIP: toml_config: handle single-level nested structs

* WIP: toml_config: improve comment handling, std type trait impls

* WIP: toml_config: add Private trait, improve comment handling, clean up

* toml_config: fix default value bug; improve tests

* Use toml_config in all applicable crates; add toml_config enum support

* toml_config: improve comments

* toml_config_derive: support enum comments

* Improve config comments for udp, cli_helpers, common

* Improve config comments

* Add tests for Config struct TomlConfig implementations

* Improve Config comments

* Improve Config comments

* ws, http: add config comments for tls cert and private key lines

* small fixes to toml_config and toml_config_derive

* Run cargo fmt

* Fix typo in several config comments

* Update README

* Update README
2021-12-26 11:33:27 +01:00
Joakim Frostegård
473276cd46 Switch to rust edition 2021 2021-11-24 18:56:26 +01:00
Joakim Frostegård
34f263f6b9 udp: new file structure: each worker types is submod of workers mod 2021-11-21 19:39:44 +01:00
Joakim Frostegård
59e95894b9 udp: statistics: show number of torrents and access list len 2021-11-19 12:04:16 +01:00
Joakim Frostegård
028a366ce5 Don't unnecessarily constrain crate versions in Cargo.toml files 2021-11-19 02:45:53 +01:00
Joakim Frostegård
99632d4be5 udp: implement torrent map cleaning for new, sharded torrent state 2021-11-18 22:42:37 +01:00
Joakim Frostegård
5ef0935c97 udp: remove unused config var max_requests_per_iter 2021-11-18 22:42:36 +01:00
Joakim Frostegård
b617ff9d09 udp: shard request workers by info hash 2021-11-18 22:42:36 +01:00
Joakim Frostegård
f3e41148fe udp: split AnnounceResponse into V4 and V6 versions 2021-11-18 22:42:36 +01:00
Joakim Frostegård
4641dd29f2 udp: remove glommio implementation 2021-11-18 22:42:36 +01:00
Joakim Frostegård
18635bf26c udp: add io-uring implementation 2021-11-18 22:42:36 +01:00
Joakim Frostegård
821608ab50 aquatic_udp: glommio: return scrape stats in correct order 2021-10-23 16:18:47 +02:00
Joakim Frostegård
1564291471 Run rustfmt 2021-10-23 14:56:00 +02:00
Joakim Frostegård
08920fce5f WIP: aquatic_udp: glommio: work on handling scrape requests 2021-10-23 14:05:54 +02:00
Joakim Frostegård
b10f7b89e7 aquatic_udp: move code only use in mio impl out of crate::common 2021-10-21 15:41:50 +02:00
Joakim Frostegård
f2b157a149 aquatic_udp: split some code into mio and glommio versions 2021-10-18 22:51:53 +02:00
Joakim Frostegård
fc0c2b7c1c aquatic_udp_bench: update example outputs in top-level comment 2021-10-18 11:35:18 +02:00
Joakim Frostegård
de85feec9a aquatic_udp: add and use ConnectedResponse enum 2021-10-18 01:25:25 +02:00
Joakim Frostegård
7616df9686 aquatic_udp: validate requests in socket workers
Also, don't send error responses for unconnected requests
2021-10-18 01:14:32 +02:00
Joakim Frostegård
c8bb648d23 Upgrade indicatif 2021-08-15 22:37:54 +02:00
Joakim Frostegård
d0e716f80b Run rustfmt, clean up aquatic_http_protocol/Cargo.toml 2021-08-15 22:26:11 +02:00
Joakim Frostegård
e1260d14de Update rand to 0.8 and rand_distr to 0.4 2021-02-10 18:36:23 +01:00
Joakim Frostegård
ac6eefc30f Update crossbeam-channel to 0.5 2021-02-10 18:36:23 +01:00
Joakim Frostegård
fe11ed138a Use (patched) crates.io deps for crates, add some package metadata 2020-09-13 17:30:26 +02:00
Joakim Frostegård
66e9882f48 Update dependencies 2020-09-10 23:23:21 +02:00
Joakim Frostegård
9efc1fc66a add aquatic crate with master executable, refactor cli_helpers 2020-08-13 00:13:01 +02:00
Joakim Frostegård
8d58f8bb70 init logger in aquatic_cli_helpers crate 2020-08-02 21:21:58 +02:00
Joakim Frostegård
ec0f132142 aquatic udp bench: fix cli program name 2020-08-02 00:37:07 +02:00
Joakim Frostegård
561cc3db55 fix more clippy warnings 2020-08-02 00:36:56 +02:00
Joakim Frostegård
52eeda2f2c aquatic_udp_bench: bump indicatif version 2020-07-21 01:03:23 +02:00
Joakim Frostegård
3addab07f0 move plot_pareto from aquatic_udp_bench crate into own crate 2020-05-25 19:38:53 +02:00
Joakim Frostegård
2f13e1e1a8 rename crate "cli_helpers" to "aquatic_cli_helpers" 2020-05-25 19:27:22 +02:00
Joakim Frostegård
bc4ada104d rename crate "bittorrent_udp" to "aquatic_udp_protocol" 2020-05-25 19:21:52 +02:00
Joakim Frostegård
526faa9aab cli_helpers: use anyhow in app fn; aquatic_ws: reorganize error handling 2020-05-23 14:05:50 +02:00
Joakim Frostegård
1b8d74e26d rename aquatic to aquatic_udp, same for bench and load test crates 2020-05-11 16:55:46 +02:00