Commit graph

37 commits

Author SHA1 Message Date
Joakim Frostegård
8871d0eec8 http and ws: rename cleaning.interval to torrent_cleaning_interval 2021-11-03 00:11:24 +01:00
Joakim Frostegård
446fd0b1f4 aquatic_ws: use signals for access list updates 2021-11-02 23:29:04 +01:00
Joakim Frostegård
78d29770f3 aquatic_ws, aquatic_ws_load_test: cargo fmt 2021-11-02 20:33:14 +01:00
Joakim Frostegård
98237c928f aquatic_ws: improve channel sending error handling 2021-11-02 12:06:53 +01:00
Joakim Frostegård
2f5e023fd7 aquatic_ws: use unbounded local out message channel 2021-11-02 11:57:43 +01:00
Joakim Frostegård
e00dcaa5c3 aquatic_ws: log ConnectionWriter::send_error_response errors 2021-11-01 22:19:00 +01:00
Joakim Frostegård
724932a498 aquatic_ws: pending scrape responses: avoid cloning stats 2021-11-01 22:17:31 +01:00
Joakim Frostegård
07e1b8230f aquatic_ws: reclaim pending_scrape_slab memory after entry removal 2021-11-01 21:41:05 +01:00
Joakim Frostegård
d2595e9746 aquatic_ws: split networking into reader and writer tasks 2021-11-01 21:34:34 +01:00
Joakim Frostegård
23c2eff6f3 aquatic_ws: move comment on empty info hashes to network.rs 2021-11-01 19:25:14 +01:00
Joakim Frostegård
24bfaf67c0 aquatic_ws: rewrite to use glommio 2021-11-01 19:08:00 +01:00
Joakim Frostegård
0c93d170de WIP: aquatic_ws network: organize into submodule, other small fixes 2020-05-12 21:04:47 +02:00
Joakim Frostegård
800d3b0efa WIP: aquatic_ws: network: add ConnectionStage::is_established 2020-05-12 20:46:00 +02:00
Joakim Frostegård
6e0b0ccbc2 WIP: aquatic_ws: network: rename PeerConnection to EstablishedWs 2020-05-12 20:31:07 +02:00
Joakim Frostegård
b221f3fc34 WIP: aquatic_ws: support tls and no tls with same functions 2020-05-12 20:20:00 +02:00
Joakim Frostegård
de9a32840f WIP: aquatic_ws: start work on wss (ws with tls) 2020-05-12 18:48:50 +02:00
Joakim Frostegård
de06931242 aquatic_ws: in remove_inactive_connections, run shrink_to_fit on map 2020-05-12 15:24:57 +02:00
Joakim Frostegård
e4bdfd06fb aquatic_ws: set so_reuseport on socket, with new create_listener fn 2020-05-12 15:23:25 +02:00
Joakim Frostegård
21048727db aquatic_ws: add Config, use in many places; use cli_helpers for cli
Also add mimalloc
2020-05-12 14:58:55 +02:00
Joakim Frostegård
f3f2023306 aquatic_ws: update comments 2020-05-11 16:27:42 +02:00
Joakim Frostegård
f1a20b0c8c aquatic_ws: add some fixme comments, update ValidUntil time 2020-05-11 16:22:30 +02:00
Joakim Frostegård
b76f8cdebc aquatic_ws: shorten field names in ConnectionMeta, PeerConnection 2020-05-11 16:19:40 +02:00
Joakim Frostegård
9fc9f2fd9c aquatic_ws: network: remove inactive connections 2020-05-11 15:41:39 +02:00
Joakim Frostegård
87290f4289 aquatic_ws: rename "read_and_forward_in_messages; move around code 2020-05-11 14:42:27 +02:00
Joakim Frostegård
6136184890 aquatic_ws: network: handle network errors better 2020-05-11 14:36:47 +02:00
Joakim Frostegård
656b0da3c6 aquatic_ws: use fn handle_handshake_result in one more location 2020-05-11 14:29:27 +02:00
Joakim Frostegård
583d323c7f aquatic_ws: create fn handle_handshake_result 2020-05-11 14:25:35 +02:00
Joakim Frostegård
274799872f aquatic_ws: clean up; remove connection on IO error; update TODO 2020-05-11 14:13:58 +02:00
Joakim Frostegård
e4bb851c10 aquatic_ws: in listener, remove previous connection if it exists 2020-05-11 14:04:13 +02:00
Joakim Frostegård
0ec73d6cea aquatic_ws: network: ConnectionMap: use Token as key 2020-05-11 13:55:28 +02:00
Joakim Frostegård
a85a72ff66 WIP: aquatic_ws: network: improve connection map & token code 2020-05-11 13:45:17 +02:00
Joakim Frostegård
003e5f2df9 WIP: aquatic_ws: rewrite network code, announce working somewhat 2020-05-10 20:24:04 +02:00
Joakim Frostegård
75c8ccd523 WIP: try to get mio + tungstenite working 2020-05-10 15:25:22 +02:00
Joakim Frostegård
e6a4bca04c aquatic ws: split network code into separate functions 2020-05-08 21:26:31 +02:00
Joakim Frostegård
4d0c3d309a aquatic_ws: add tungstenite::Message encode and decode, not tested 2020-05-07 19:34:28 +02:00
Joakim Frostegård
c94b3d7d3c WIP: aquatic_ws: minor work, renaming, mock impls 2020-05-07 17:18:23 +02:00
Joakim Frostegård
cf75a07a7e WIP: aquatic_ws: start work on data structures, data flow 2020-05-07 16:49:28 +02:00