Joakim Frostegård
|
b8073e4bd1
|
Replace HashMap and IndexMap with indexmap_amortized
This will hopefully get down latency.
|
2021-11-03 10:35:29 +01:00 |
|
Joakim Frostegård
|
fa3b6bb259
|
Move fn update_access_list to aquatic_common
|
2021-11-02 23:33:47 +01:00 |
|
Joakim Frostegård
|
992f4df635
|
aquatic_common: add access list test
|
2021-11-02 22:54:18 +01:00 |
|
Joakim Frostegård
|
fdaafae4b7
|
aquatic_udp: glommio: use signals for access list update
|
2021-11-02 22:23:47 +01:00 |
|
Joakim Frostegård
|
9b75b50802
|
aquatic_udp: mio: access list: use SIGUSR1, improve errors
|
2021-11-02 21:06:57 +01:00 |
|
Joakim Frostegård
|
d922e5e680
|
aquatic_udp: mio: update access list on SIGHUP instead of regularly
|
2021-11-02 20:33:08 +01:00 |
|
Joakim Frostegård
|
49ed4371e7
|
Run cargo fmt, clean up imports
|
2021-10-28 01:23:43 +02:00 |
|
Joakim Frostegård
|
d6d5cc78b7
|
udp, http: move privilege drop code into aquatic_common
|
2021-10-27 20:49:15 +02:00 |
|
Joakim Frostegård
|
35b8a1820d
|
Rename CoreAffinityConfig to CpuPinningConfig, rename fields
|
2021-10-27 20:21:11 +02:00 |
|
Joakim Frostegård
|
d659117ae5
|
Move CoreAffinityConfig to aquatic_common, use in glommio http
|
2021-10-27 20:19:02 +02:00 |
|
Joakim Frostegård
|
96196239f5
|
aquatic_udp: glommio: mostly implement scrape request support
|
2021-10-23 14:43:16 +02:00 |
|
Joakim Frostegård
|
119cd0fe46
|
Improve common AccessList code
|
2021-10-23 12:57:00 +02:00 |
|
Joakim Frostegård
|
38617c70f4
|
Refactor AccessList; update it periodically in aquatic_udp glommio
|
2021-10-19 22:52:31 +02:00 |
|
Joakim Frostegård
|
f3487d4749
|
Rename AccessList variants
|
2021-10-17 18:19:31 +02:00 |
|
Joakim Frostegård
|
f32cb522e2
|
aquatic_common: rename a AccessList function argument
|
2021-10-16 17:54:13 +02:00 |
|
Joakim Frostegård
|
7ccd5fcbf7
|
access lists: filter requests in socket workers instead
|
2021-10-16 17:26:40 +02:00 |
|
Joakim Frostegård
|
40b7bfe309
|
aquatic_common: make info hash parse test code look nicer
|
2021-10-15 22:09:20 +02:00 |
|
Joakim Frostegård
|
ba787c3361
|
aquatic_common: improve comments, run rustfmt
|
2021-10-15 22:07:29 +02:00 |
|
Joakim Frostegård
|
490c0b037d
|
AccessListMode: rename Allow to Require and Deny to Forbid
|
2021-10-15 21:59:46 +02:00 |
|
Joakim Frostegård
|
3a2e751668
|
AccessListConfig: put mode field first
|
2021-10-15 21:58:47 +02:00 |
|
Joakim Frostegård
|
b3d1bcb7f1
|
aquatic_udp: serde-rename AccessListMode variants to lowercase
|
2021-10-15 21:58:23 +02:00 |
|
Joakim Frostegård
|
f0846e3128
|
aquatic_common: rename AccessListType to AccessListMode
|
2021-10-15 21:55:01 +02:00 |
|
Joakim Frostegård
|
60d183003d
|
aquatic_common: move access list code to own file
|
2021-10-15 21:53:42 +02:00 |
|
Joakim Frostegård
|
f370dac330
|
access list: use hex crate for info hash parsing
|
2021-10-15 10:09:02 +02:00 |
|
Joakim Frostegård
|
ec5d535ffc
|
access list: improve naming
|
2021-10-15 02:46:28 +02:00 |
|
Joakim Frostegård
|
4b96cfbdf9
|
access list: don't delete old until new sucessfully created
|
2021-10-15 02:44:05 +02:00 |
|
Joakim Frostegård
|
ea52317b49
|
access list: improve info hash string parsing
|
2021-10-15 02:41:26 +02:00 |
|
Joakim Frostegård
|
6cfa220097
|
access list: log when update fails; run cargo fmt
|
2021-10-15 02:35:13 +02:00 |
|
Joakim Frostegård
|
b5a2b81bd7
|
aquatic_udp: simplify access list logic
|
2021-10-15 02:30:49 +02:00 |
|
Joakim Frostegård
|
8639f380f4
|
aquatic_udp: first access list implementation
|
2021-10-15 02:08:57 +02:00 |
|
Joakim Frostegård
|
32541c5c15
|
Upgrade hashbrown
|
2021-08-15 22:29:09 +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
|
fe11ed138a
|
Use (patched) crates.io deps for crates, add some package metadata
|
2020-09-13 17:30:26 +02: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
|
a3a1d1606b
|
WIP: udp: add ipv6 support
Returning IPv6 peers doesn't really work with UDP. It is not supported by
https://libtorrent.org/udp_tracker_protocol.html. There is a suggestion in
https://web.archive.org/web/20170503181830/http://opentracker.blog.h3q.com/2007/12/28/the-ipv6-situation/
of using action number 4 and returning IPv6 octets just like for IPv4
addresses. Clients seem not to support it very well, but due to a lack of
alternative solutions, it is implemented here
|
2020-07-31 05:37:58 +02:00 |
|
Joakim Frostegård
|
43a33d80c4
|
aquatic_http: add ipv6 compact responses; fix ipv4/ipv6 issue
|
2020-07-08 12:26:41 +02:00 |
|
Joakim Frostegård
|
5c83af9f88
|
Move some code from aquatic_udp into aquatic_common
|
2020-05-11 17:06:37 +02:00 |
|