Commit graph

34 commits

Author SHA1 Message Date
Joakim Frostegård
28cc6c261a aquatic_ws: almost finish implementing access list support 2021-10-16 01:08:59 +02:00
Joakim Frostegård
82a36041b3 Merge branch 'master' into ws-file-transfer-ci 2021-08-16 19:27:13 +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
de42d2e1b7 aquatic_ws: add trace logging of requests 2021-02-10 23:43:08 +01:00
Joakim Frostegård
6ee8ed4895 aquatic_common: extract response peers: don't return sender
Seems to fix or at least help with some issues with
real clients being slow to initiate transfers
2020-08-16 23:07:39 +02:00
Joakim Frostegård
9af4e4663d aquatic_ws: send responses for every event, wake mio for responses 2020-08-11 23:58:00 +02:00
Joakim Frostegård
0637f83daa aquatic_ws: rewrite failing serialization, add tests
Use different approach to action fields and info_hash vec, fixing
failing tests
2020-08-09 00:26:26 +02:00
Joakim Frostegård
6f618bb013 aquatic_ws_load_test: get answer sending to work with wt-tracker 2020-08-03 07:02:42 +02:00
Joakim Frostegård
aabdf76a5d aquatic_ws: fix some clippy warnings 2020-08-02 00:07:12 +02:00
Joakim Frostegård
a5108f813d WIP: aquatic_ws: add half-crappy load test, fix infinite loop bug 2020-08-01 03:35:00 +02:00
Joakim Frostegård
809d16919d aquatic_ws: convert ipv4-mapped ipv6 addresses to ipv4 (for state split) 2020-08-01 00:08:18 +02:00
Joakim Frostegård
7dd02a03d3 aquatic_ws announce handler: improve variable naming and scoping 2020-05-26 19:17:37 +02:00
Joakim Frostegård
abc0034a45 aquatic_ws: don't send peer its own offer 2020-05-25 19:01:10 +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
416d61a2b2 aquatic_ws: split torrent state by ipv4/ipv6 2020-05-23 15:15:01 +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
cb66364fa5 aquatic_ws: save peer even if AnnounceRequest.bytes_left is None 2020-05-15 16:02:49 +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
2d56ac7c21 aquaticc ws: handle_announce_requests: add #[inline] to helper fn 2020-05-12 12:29:05 +02:00
Joakim Frostegård
499c04d621 aquatic_ws: derive Copy on twenty byte structures, avoid clones 2020-05-12 12:26:49 +02:00
Joakim Frostegård
5c83af9f88 Move some code from aquatic_udp into aquatic_common 2020-05-11 17:06:37 +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
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
da2d5986b9 aquatic_ws: check for "fake" peer_id's in announce requests 2020-05-11 16:07:51 +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
460a778d0d aquatic_ws: protocol: add info hash vector parsing; refactor 2020-05-09 15:31:40 +02:00
Joakim Frostegård
5b58db90e3 aquatic_ws: pass on offers to other peers; minor fixes 2020-05-08 21:05:46 +02:00
Joakim Frostegård
fa82d93190 aquatic_ws: announce handler: update comments 2020-05-08 02:15:14 +02:00
Joakim Frostegård
982f3c8959 aquatic_ws: request_worker: improve channel reading logic 2020-05-08 02:07:03 +02:00
Joakim Frostegård
a39c7a5950 aquatic_ws: announce handler fixes, related changes elsewhere 2020-05-08 01:57:12 +02:00
Joakim Frostegård
7ebbb311e1 aquatic_ws: handler: implement scrape handler; other small changes 2020-05-08 01:22:55 +02:00
Joakim Frostegård
1bb9caa8d1 aquatic_ws: add more protocol fixes and info; small handler fix 2020-05-08 00:50:29 +02:00
Joakim Frostegård
cf75a07a7e WIP: aquatic_ws: start work on data structures, data flow 2020-05-07 16:49:28 +02:00