Commit graph

349 commits

Author SHA1 Message Date
Joakim Frostegård
5c07370786 Update TODO 2020-05-25 18:06:49 +02:00
Joakim Frostegård
840f67fc8d aquatic_udp: move some config vars to new substruct, ProtocolConfig 2020-05-25 18:04:47 +02:00
Joakim Frostegård
5af9ae4ede aquatic_ws: move some config vars to new substruct ProtocolConfig 2020-05-25 17:59:52 +02:00
Joakim Frostegård
15b749afed README: add section "architectural overview" 2020-05-24 13:27:02 +02:00
Joakim Frostegård
449d40c814 Update and reorganize README 2020-05-24 13:15:18 +02:00
Joakim Frostegård
e3b7af2c00 aquatic_ws: log error messages on channel send failure 2020-05-23 20:41:20 +02:00
Joakim Frostegård
ba060c539b aquatic_ws executable: remove thread log settings, add comment 2020-05-23 20:33:16 +02:00
Joakim Frostegård
66216657ec aquatic_ws: name worker threads
Note: simplelog doesn't seem to pick up thread names, but
this commit is good anyway, since they can be displayed
in e.g. htop on Linux
2020-05-23 20:27:31 +02:00
Joakim Frostegård
bc8916dce4 aquatic_ws: add logging with level configured by config file 2020-05-23 20:16:56 +02:00
Joakim Frostegård
0d4bc25ea9 Update README: update aquatic_ws default config 2020-05-23 17:43:23 +02:00
Joakim Frostegård
a5b1fa619a cli_helpers: better error messages for config file opening/reading 2020-05-23 17:25:09 +02:00
Joakim Frostegård
80c924d461 Update TODO 2020-05-23 17:16:44 +02:00
Joakim Frostegård
b9ee290ca0 aquatic_ws: add more anyhow error context annotations 2020-05-23 17:15:11 +02:00
Joakim Frostegård
65684472a6 Update TODO 2020-05-23 17:08:12 +02:00
Joakim Frostegård
7c33358254 aquatic_ws: polling: don't check if event readable
We only register interest in readable events so this should be OK
2020-05-23 17:06:46 +02:00
Joakim Frostegård
b571f2d8fd cli_helpers: add explicit short form -p for --print-config 2020-05-23 17:02:58 +02:00
Joakim Frostegård
f3bdb6bc2a aquatic_ws: privilege dropping; cli_helpers: show error context 2020-05-23 17:02:52 +02:00
Joakim Frostegård
a596ee155a aquatic_ws: wait for and quit on socket bind errors in workers 2020-05-23 16:38:31 +02:00
Joakim Frostegård
078a8c2868 Update TODO 2020-05-23 15:47:11 +02:00
Joakim Frostegård
d4bcc14c82 aquatic_ws: add setting Config.ipv6_only 2020-05-23 15:40:56 +02:00
Joakim Frostegård
416d61a2b2 aquatic_ws: split torrent state by ipv4/ipv6 2020-05-23 15:15:01 +02:00
Joakim Frostegård
7430c23ccc aquatic_ws: add simple_logger for debugging, need better solution 2020-05-23 14:53:29 +02:00
Joakim Frostegård
23e0e0bcd0 aquatic_ws: add log::trace statements for message read and write 2020-05-23 14:44:42 +02:00
Joakim Frostegård
a30335730b aquatic_ws: add settings for max ws message sizes, set low defaults 2020-05-23 14:44:03 +02:00
Joakim Frostegård
0f6d6d4b21 aquatic_ws: use log crate for debug error messages 2020-05-23 14:24:26 +02:00
Joakim Frostegård
572aa632b6 aquatic_ws: don't handle connection closed same as other errors 2020-05-23 14:17:03 +02:00
Joakim Frostegård
ae92785484 Update TODO 2020-05-23 14:10:06 +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
1efe6f96c5 Update TODO 2020-05-22 15:40:04 +02:00
Joakim Frostegård
0eae9a12cf Update TODO 2020-05-19 12:25:47 +02:00
Joakim Frostegård
b42ff9a23b aquatic_ws: remove DebugCallback and lots of debug output
Some error messages are still printed, though
2020-05-18 13:01:48 +02:00
Joakim Frostegård
cb0c299298 Update TODO 2020-05-17 21:26:44 +02:00
Joakim Frostegård
1a2432733e aquatic_ws: in scrape handler, limit HashMap preallocation 2020-05-17 21:24:29 +02:00
Joakim Frostegård
9a04173f65 Run cargo update 2020-05-17 12:14:59 +02:00
Joakim Frostegård
2b11091bfb deny.toml: allow ISC license 2020-05-17 12:13:27 +02:00
Joakim Frostegård
c1d08bc6d5 bittorrent_udp: add short doc comment 2020-05-17 12:08:53 +02:00
Joakim Frostegård
ea85f23ac7 Update TODO 2020-05-17 12:08:41 +02:00
Joakim Frostegård
4216452fc9 aquatic_udp, aquatic_ws: bind to 0.0.0.0:3000 by default 2020-05-17 11:58:00 +02:00
Joakim Frostegård
c8105db053 Update README 2020-05-17 11:52:51 +02:00
Joakim Frostegård
7da7d79d90 aquatic_ws: remove no longer valid comment 2020-05-15 17:06:10 +02:00
Joakim Frostegård
ad925c07f1 aquatic_ws: comment out privilege settings since they're not implemented 2020-05-15 17:01:15 +02:00
Joakim Frostegård
0eb4039b5e aquatic_ws: network: use HandshakeMachine::new in Connection 2020-05-15 16:16:03 +02:00
Joakim Frostegård
420dcbc717 aquatic_ws: network: rename common.rs to connection.rs 2020-05-15 16:15:39 +02:00
Joakim Frostegård
73c90622c7 aquatic_ws network: make HandshakeMachine non-public 2020-05-15 16:12:56 +02:00
Joakim Frostegård
885640a385 Update TODO 2020-05-15 16:08:04 +02:00
Joakim Frostegård
8bf9f2c408 Update README with instructions for TLS in aquatic_ws 2020-05-15 16:07:14 +02:00
Joakim Frostegård
cb66364fa5 aquatic_ws: save peer even if AnnounceRequest.bytes_left is None 2020-05-15 16:02:49 +02:00
Joakim Frostegård
008d8b8eff Update TODO 2020-05-14 22:51:06 +02:00
Joakim Frostegård
138e501599 aquatic_ws: impl read_vectored and write_vectored for Stream 2020-05-14 01:06:18 +02:00
Joakim Frostegård
a471d97620 Update TODO: write more general information at top 2020-05-14 01:00:07 +02:00