author
int64
658
755k
date
stringdate
2012-06-12 08:34:29
2024-07-22 14:51:21
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
listlengths
1
16
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
20,244
29.03.2020 09:55:28
14,400
2847e16b30b2437cd47458a07edfed604430cfa5
WIP: fix partial packet reading logic
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_client/src/lib.rs", "new_path": "antenna_forwarding_client/src/lib.rs", "diff": "@@ -145,9 +145,7 @@ pub fn start_antenna_forwarding_proxy(\nfn forward_connections(antenna_sockaddr: SocketAddr, server_stream: TcpStream) {\ntrace!(\"Forwardin...
Rust
Apache License 2.0
althea-net/althea_rs
WIP: fix partial packet reading logic
20,244
30.03.2020 09:41:56
14,400
1ca9e36ffcf35f0907cf5161acd25e4a56e976bb
Upgrade client to use enum forwarding
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_client/src/lib.rs", "new_path": "antenna_forwarding_client/src/lib.rs", "diff": "@@ -13,31 +13,23 @@ use althea_kernel_interface::KernelInterface;\nuse althea_kernel_interface::LinuxCommandRunner;\nuse althea_types::Identity;\nuse althea_typ...
Rust
Apache License 2.0
althea-net/althea_rs
Upgrade client to use enum forwarding
20,244
30.03.2020 18:49:07
14,400
f66fa554b82b057c093ddf8334ee102c7cf52117
More deduplication for ForwardingProtocol Additional functions where moved into the protocol library for use by the server.
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_client/src/lib.rs", "new_path": "antenna_forwarding_client/src/lib.rs", "diff": "@@ -13,7 +13,7 @@ use althea_kernel_interface::KernelInterface;\nuse althea_kernel_interface::LinuxCommandRunner;\nuse althea_types::Identity;\nuse althea_types...
Rust
Apache License 2.0
althea-net/althea_rs
More deduplication for ForwardingProtocol Additional functions where moved into the protocol library for use by the server.
20,244
30.03.2020 21:52:28
14,400
9a1fe9f109d0c5b75c51c5bf1ba4ae9604ee4377
Use read_to_end for forwarding If we're reading into a vector may as well use this trait function that's much better implemented.
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_protocol/src/lib.rs", "new_path": "antenna_forwarding_protocol/src/lib.rs", "diff": "@@ -63,23 +63,14 @@ pub fn write_all_spinlock(stream: &mut TcpStream, buffer: &[u8]) -> Result<(), I\npub fn read_till_block(input: &mut TcpStream) -> Resul...
Rust
Apache License 2.0
althea-net/althea_rs
Use read_to_end for forwarding If we're reading into a vector may as well use this trait function that's much better implemented.
20,244
31.03.2020 07:22:48
14,400
0dd9a55be1747830621aa9fde908cbdd8d3b3382
Remove unused functions and raise spinlock time to 100ms The 100ms spinlock results in somewhat better performance on the routers.
[ { "change_type": "MODIFY", "old_path": "Cargo.lock", "new_path": "Cargo.lock", "diff": "@@ -221,6 +221,7 @@ dependencies = [\n\"althea_types\",\n\"clarity\",\n\"failure\",\n+ \"log\",\n\"rand 0.7.3\",\n\"serde 1.0.105\",\n\"serde_derive\",\n" }, { "change_type": "MODIFY", "old_path": "an...
Rust
Apache License 2.0
althea-net/althea_rs
Remove unused functions and raise spinlock time to 100ms The 100ms spinlock results in somewhat better performance on the routers.
20,244
31.03.2020 15:46:13
14,400
3c5fa58aabe3019ab59bcaf6da8eeab2a2179e07
Don't use armv7 in cross tests this is also behaving strangely in cross. I'm starting to think they changed stuff upstream and I'm going to have to actually focus in on fixing it.
[ { "change_type": "MODIFY", "old_path": "scripts/test.sh", "new_path": "scripts/test.sh", "diff": "#!/bin/bash\n-#set -eux\n+set -eux\nNODES=${NODES:='None'}\nRUST_TEST_THREADS=1 cargo test --all\n@@ -9,8 +9,6 @@ cross test --target mipsel-unknown-linux-gnu --verbose -p rita --bin rita -- --t\ncross ...
Rust
Apache License 2.0
althea-net/althea_rs
Don't use armv7 in cross tests this is also behaving strangely in cross. I'm starting to think they changed stuff upstream and I'm going to have to actually focus in on fixing it.
20,244
02.04.2020 08:28:26
14,400
2f3986e05b7747f8b8c051fd561103789d86b3fc
Doc comment for utils
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_common/utils/mod.rs", "new_path": "rita/src/rita_common/utils/mod.rs", "diff": "+/// Random utilities that don't go anywhere else, many of these are used only in one or the other of rita_exit or rita_client so one will use it and the other will\n...
Rust
Apache License 2.0
althea-net/althea_rs
Doc comment for utils
20,244
09.04.2020 07:28:09
14,400
ca408c8e7a621ccf501b749cf964bee7d8133b61
Clippy iterator nit in babel monitor
[ { "change_type": "MODIFY", "old_path": "babel_monitor/src/lib.rs", "new_path": "babel_monitor/src/lib.rs", "diff": "@@ -284,7 +284,7 @@ pub fn get_local_fee(stream: TcpStream) -> impl Future<Item = (TcpStream, u32),\n}\nfn get_local_fee_sync(babel_output: String) -> Result<u32, Error> {\n- let fee_e...
Rust
Apache License 2.0
althea-net/althea_rs
Clippy iterator nit in babel monitor
20,244
09.04.2020 07:28:27
14,400
a7e94ef30b7e4428d9dc2c5811c6fc2b380dbab7
Into fixed sized array for WgKey
[ { "change_type": "MODIFY", "old_path": "althea_types/src/wg_key.rs", "new_path": "althea_types/src/wg_key.rs", "diff": "@@ -17,6 +17,12 @@ impl AsRef<[u8]> for WgKey {\n}\n}\n+impl From<WgKey> for [u8; 32] {\n+ fn from(val: WgKey) -> [u8; 32] {\n+ val.0\n+ }\n+}\n+\n/// This is somewhat dangerous, s...
Rust
Apache License 2.0
althea-net/althea_rs
Into fixed sized array for WgKey
20,244
09.04.2020 07:48:36
14,400
ef9be5ae58c23a440a200b76f91242243fabc3c8
Make Rita loop it's own thread I'm hoping this reduces some of the scale/blocking problems we've been seeing over on the portland exit.
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_exit/rita_loop/mod.rs", "new_path": "rita/src/rita_exit/rita_loop/mod.rs", "diff": "@@ -28,10 +28,7 @@ use crate::rita_exit::network_endpoints::*;\nuse crate::rita_exit::traffic_watcher::{TrafficWatcher, Watch};\nuse crate::KI;\nuse crate::SETTIN...
Rust
Apache License 2.0
althea-net/althea_rs
Make Rita loop it's own thread I'm hoping this reduces some of the scale/blocking problems we've been seeing over on the portland exit.
20,244
09.04.2020 08:17:03
14,400
ea45bc5fac08484f0844dc90e29e3c9cc094dda8
Drive all Rita exit futures from the Rita exit loop thread This essentially moves all of Rita exit's repeating components into a loop. The hope here is that we manage to not interfere with the rita_common futures loop by blocking for database requests.
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_exit/database/mod.rs", "new_path": "rita/src/rita_exit/database/mod.rs", "diff": "@@ -27,7 +27,6 @@ use crate::rita_exit::database::struct_tools::display_hashset;\nuse crate::rita_exit::database::struct_tools::to_exit_client;\nuse crate::rita_exi...
Rust
Apache License 2.0
althea-net/althea_rs
Drive all Rita exit futures from the Rita exit loop thread This essentially moves all of Rita exit's repeating components into a loop. The hope here is that we manage to not interfere with the rita_common futures loop by blocking for database requests.
20,244
09.04.2020 11:01:55
14,400
4c275068ee8fc7918723d49e60964c3ecfb02b76
Fix timeouts and actor references for Rita Exit thread This fixes a lot of the runtime complexities of living outside of the main arbiter thread. TODO add poll with timeout utiliy function right now if any of these futures blocks we will end up hanging on it.
[ { "change_type": "MODIFY", "old_path": "babel_monitor/src/lib.rs", "new_path": "babel_monitor/src/lib.rs", "diff": "@@ -28,13 +28,10 @@ use std::net::IpAddr;\nuse std::net::SocketAddr;\nuse std::str;\nuse std::str::FromStr;\n-use std::time::Duration;\n-use std::time::Instant;\nuse tokio::io::read;\n...
Rust
Apache License 2.0
althea-net/althea_rs
Fix timeouts and actor references for Rita Exit thread This fixes a lot of the runtime complexities of living outside of the main arbiter thread. TODO add poll with timeout utiliy function right now if any of these futures blocks we will end up hanging on it.
20,244
09.04.2020 12:09:40
14,400
967303eb61c6aef454317a54ace03328f088a3ce
Add timeouts to exit loop thread polling Well at least we where barking up the right tree, this was in production not 30 seconds before we hit somthing that likes to block
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_exit/rita_loop/mod.rs", "new_path": "rita/src/rita_exit/rita_loop/mod.rs", "diff": "@@ -26,6 +26,8 @@ use crate::rita_exit::database::{\ncleanup_exit_clients, enforce_exit_clients, setup_clients, validate_clients_region,\n};\nuse crate::rita_exit...
Rust
Apache License 2.0
althea-net/althea_rs
Add timeouts to exit loop thread polling Well at least we where barking up the right tree, this was in production not 30 seconds before we hit somthing that likes to block
20,244
09.04.2020 14:11:47
14,400
27e69e044aeb01d18af02da31c711b708fc6f7b8
Use syncronous geoip requests We can no longer use actix client since we are making requests in another thread now. This is unfortunate because this same codepath is run by the worker threads for client checkins.
[ { "change_type": "MODIFY", "old_path": "Cargo.lock", "new_path": "Cargo.lock", "diff": "@@ -8,7 +8,7 @@ checksum = \"6c616db5fa4b0c40702fb75201c2af7f8aa8f3a2e2c1dda3b0655772aa949666\"\ndependencies = [\n\"actix_derive 0.3.2\",\n\"bitflags\",\n- \"bytes\",\n+ \"bytes 0.4.12\",\n\"crossbeam-channel\",...
Rust
Apache License 2.0
althea-net/althea_rs
Use syncronous geoip requests We can no longer use actix client since we are making requests in another thread now. This is unfortunate because this same codepath is run by the worker threads for client checkins.
20,244
09.04.2020 14:33:52
14,400
7b5cb2470b883b2674e0c4aa5c1507c734c702c8
Break up rita exit loop Reduces the size of the exit loop function and helps keep the logging messages from dominating readability
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_exit/rita_loop/mod.rs", "new_path": "rita/src/rita_exit/rita_loop/mod.rs", "diff": "@@ -31,10 +31,12 @@ use crate::rita_exit::rita_loop::wait_timeout::WaitResult;\nuse crate::rita_exit::traffic_watcher::{TrafficWatcher, Watch};\nuse crate::KI;\nu...
Rust
Apache License 2.0
althea-net/althea_rs
Break up rita exit loop Reduces the size of the exit loop function and helps keep the logging messages from dominating readability
20,244
10.04.2020 06:50:00
14,400
5fdb301dba84d82b8597bb912eca99c6b29b9572
Bump for Beta 12 RC2
[ { "change_type": "MODIFY", "old_path": "Cargo.lock", "new_path": "Cargo.lock", "diff": "@@ -2628,7 +2628,7 @@ dependencies = [\n[[package]]\nname = \"rita\"\n-version = \"0.5.38\"\n+version = \"0.5.39\"\ndependencies = [\n\"actix\",\n\"actix-web\",\n" }, { "change_type": "MODIFY", "old_p...
Rust
Apache License 2.0
althea-net/althea_rs
Bump for Beta 12 RC2
20,244
10.04.2020 07:59:56
14,400
fb5980621142715dffc0432578a299179cb017b8
Fix GeoIP and SMS for sync exit loop
[ { "change_type": "MODIFY", "old_path": "rita/src/exit.rs", "new_path": "rita/src/exit.rs", "diff": "@@ -40,9 +40,7 @@ use openssl_probe;\nuse r2d2::Pool;\nuse settings::exit::ExitNetworkSettings;\nuse settings::exit::ExitVerifSettings;\n-use std::collections::HashMap;\nuse std::collections::HashSet;...
Rust
Apache License 2.0
althea-net/althea_rs
Fix GeoIP and SMS for sync exit loop
20,244
10.04.2020 09:28:59
14,400
4dd7362a7d0c89053745b9561edf04ad69f033f0
No delay for db connections This is particularly insidious because it waits to cause a panic for quite some time. Replacing with a very traditional thread sleep
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_exit/database/database_tools.rs", "new_path": "rita/src/rita_exit/database/database_tools.rs", "diff": "@@ -20,10 +20,10 @@ use futures01::future::Future;\nuse settings::exit::RitaExitSettings;\nuse std::net::IpAddr;\nuse std::net::Ipv4Addr;\n+us...
Rust
Apache License 2.0
althea-net/althea_rs
No delay for db connections This is particularly insidious because it waits to cause a panic for quite some time. Replacing with a very traditional thread sleep
20,244
10.04.2020 09:46:02
14,400
d9f1da3dc98726df06ef0c1a44018ec9e3a3baef
Add very short sleep in BabelMonitor This prevents spinlocks on single core machines
[ { "change_type": "MODIFY", "old_path": "babel_monitor/src/lib.rs", "new_path": "babel_monitor/src/lib.rs", "diff": "@@ -28,11 +28,21 @@ use std::net::IpAddr;\nuse std::net::SocketAddr;\nuse std::str;\nuse std::str::FromStr;\n+use std::thread;\n+use std::time::Duration;\nuse tokio::io::read;\nuse tok...
Rust
Apache License 2.0
althea-net/althea_rs
Add very short sleep in BabelMonitor This prevents spinlocks on single core machines
20,244
10.04.2020 10:49:23
14,400
49be7665894d03bc1f2ab03124de78a307cf5a6d
Add settings toggle for debt forgiveness
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_common/debt_keeper/mod.rs", "new_path": "rita/src/rita_common/debt_keeper/mod.rs", "diff": "@@ -108,11 +108,13 @@ fn ser_to_debt_data(input: DebtDataSer) -> DebtData {\n// discard the entry, in the case that they do have some incoming payments th...
Rust
Apache License 2.0
althea-net/althea_rs
Add settings toggle for debt forgiveness
20,244
10.04.2020 10:58:07
14,400
7a2aceafa8a2780b79b9995e367a1f4ed7e5d812
Update operator server urls
[ { "change_type": "MODIFY", "old_path": "settings/src/logging.rs", "new_path": "settings/src/logging.rs", "diff": "@@ -11,11 +11,11 @@ fn default_logging_dest_url() -> String {\n}\nfn default_heartbeat_url() -> String {\n- \"stats.altheamesh.com:33333\".to_string()\n+ \"operator.althea.net:33333\".to...
Rust
Apache License 2.0
althea-net/althea_rs
Update operator server urls
20,244
10.04.2020 13:14:40
14,400
709b2bb4b8aaf0b770a4ea53a4986be4b5271a56
Wait a few seconds between checkins
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_client/src/lib.rs", "new_path": "antenna_forwarding_client/src/lib.rs", "diff": "@@ -112,6 +112,7 @@ pub fn start_antenna_forwarding_proxy<S: 'static + std::marker::Send + ::std::ha\n}\n}\ntrace!(\"Waiting for next checkin cycle\");\n+ threa...
Rust
Apache License 2.0
althea-net/althea_rs
Wait a few seconds between checkins
20,244
10.04.2020 13:38:11
14,400
56ddafabe8a8d800b64452446ef474a8c512124f
Finish migration from DAO for heartbeat and prices endpoint Frogot to catch these before, the actual front end needs to see some variable renaming later
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_client/dashboard/prices.rs", "new_path": "rita/src/rita_client/dashboard/prices.rs", "diff": "@@ -14,13 +14,16 @@ use settings::RitaCommonSettings;\npub fn auto_pricing_status(_req: HttpRequest) -> Result<Json<bool>, Error> {\ndebug!(\"Get Auto p...
Rust
Apache License 2.0
althea-net/althea_rs
Finish migration from DAO for heartbeat and prices endpoint Frogot to catch these before, the actual front end needs to see some variable renaming later
20,244
10.04.2020 13:38:55
14,400
49dec145f6b52b871b93ab5b6bf0d9befb551f10
Slow down forwarding client checkin every five seconds is a little too often
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_client/src/lib.rs", "new_path": "antenna_forwarding_client/src/lib.rs", "diff": "@@ -36,7 +36,7 @@ lazy_static! {\npub static ref KI: Box<dyn KernelInterface> = Box::new(LinuxCommandRunner {});\n}\n-const SLEEP_TIME: Duration = NET_TIMEOUT;\...
Rust
Apache License 2.0
althea-net/althea_rs
Slow down forwarding client checkin every five seconds is a little too often
20,244
11.04.2020 07:22:37
14,400
8c892649bd807f115ffc30eda7c0272ec07fd45e
Upgrade wait_timeout to use Notify Good news, not a depricated api, bad news I'm not really sure my adaptation here is correct. It seems to run ok and I think that it's trivially correct because we're only running one future at a time.
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_exit/rita_loop/wait_timeout.rs", "new_path": "rita/src/rita_exit/rita_loop/wait_timeout.rs", "diff": "-/// Copied from here https://gist.github.com/alexcrichton/871b5bf058a2ce77ac4fedccf3fda9c9\n-/// turns out poll with timeout is quite complex, ...
Rust
Apache License 2.0
althea-net/althea_rs
Upgrade wait_timeout to use Notify Good news, not a depricated api, bad news I'm not really sure my adaptation here is correct. It seems to run ok and I think that it's trivially correct because we're only running one future at a time.
20,244
11.04.2020 16:22:45
14,400
8e1b6e6138755afaaade1add37d400ded3e6e96d
Use to_socket_addrs and don't panic on shutdown failure
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_client/src/lib.rs", "new_path": "antenna_forwarding_client/src/lib.rs", "diff": "@@ -28,6 +28,7 @@ use std::net::Ipv4Addr;\nuse std::net::Shutdown;\nuse std::net::SocketAddr;\nuse std::net::TcpStream;\n+use std::net::ToSocketAddrs;\nuse std:...
Rust
Apache License 2.0
althea-net/althea_rs
Use to_socket_addrs and don't panic on shutdown failure
20,244
13.04.2020 12:50:19
14,400
8dfb790f4b63bcb394bcba82af4f90ff075ecde7
Handle all starting message cases
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_client/src/lib.rs", "new_path": "antenna_forwarding_client/src/lib.rs", "diff": "@@ -87,12 +87,12 @@ pub fn start_antenna_forwarding_proxy<S: 'static + std::marker::Send + ::std::ha\nmatch ForwardingProtocolMessage::read_messages(&mut server...
Rust
Apache License 2.0
althea-net/althea_rs
Handle all starting message cases
20,244
13.04.2020 18:34:01
14,400
bbaa36ef3958468e07ade6a132961b652a44ad8e
Upgrade forwarding client to read encrypted forward message
[ { "change_type": "MODIFY", "old_path": "Cargo.lock", "new_path": "Cargo.lock", "diff": "@@ -221,7 +221,6 @@ dependencies = [\n\"althea_types\",\n\"clarity\",\n\"failure\",\n- \"lazy_static\",\n\"log\",\n\"rand 0.7.3\",\n\"serde 1.0.105\",\n" }, { "change_type": "MODIFY", "old_path": "ant...
Rust
Apache License 2.0
althea-net/althea_rs
Upgrade forwarding client to read encrypted forward message
20,244
13.04.2020 20:12:37
14,400
51922dd70540e230a97c65d7f589b79d5bf3cb5d
Handle close messages for encrypted forwards This message can be securely allowed and generally smooths the interaction and error handling flows.
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_client/src/lib.rs", "new_path": "antenna_forwarding_client/src/lib.rs", "diff": "@@ -97,6 +97,7 @@ pub fn start_antenna_forwarding_proxy<S: 'static + std::marker::Send + ::std::ha\nserver_port: _server_port,\nantenna_port,\n}) => {\n+ info!(...
Rust
Apache License 2.0
althea-net/althea_rs
Handle close messages for encrypted forwards This message can be securely allowed and generally smooths the interaction and error handling flows.
20,244
14.04.2020 08:29:36
14,400
fa03d518c8725af4074648367221a3aa4b3abaa5
We need lazy_static for tests
[ { "change_type": "MODIFY", "old_path": "Cargo.lock", "new_path": "Cargo.lock", "diff": "@@ -221,6 +221,7 @@ dependencies = [\n\"althea_types\",\n\"clarity\",\n\"failure\",\n+ \"lazy_static\",\n\"log\",\n\"rand 0.7.3\",\n\"serde 1.0.105\",\n" }, { "change_type": "MODIFY", "old_path": "ant...
Rust
Apache License 2.0
althea-net/althea_rs
We need lazy_static for tests
20,244
14.04.2020 11:10:34
14,400
17d14a2f4fafea2551743878f5e1553156b8f865
Remove unimplemented from antenna protocol and client code This removes a lot of crash cases on bad messages or other unexpected input. I might want to add this back in under a development feature flag at a later date
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_client/src/lib.rs", "new_path": "antenna_forwarding_client/src/lib.rs", "diff": "@@ -74,7 +74,6 @@ pub fn start_antenna_forwarding_proxy<S: 'static + std::marker::Send + ::std::ha\n// parse checkin address every loop iteration as a way\n// o...
Rust
Apache License 2.0
althea-net/althea_rs
Remove unimplemented from antenna protocol and client code This removes a lot of crash cases on bad messages or other unexpected input. I might want to add this back in under a development feature flag at a later date
20,244
14.04.2020 14:29:58
14,400
ab17067a26938f7db6b4db50043db710304689d4
Add basic antenna blacklist
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_client/src/lib.rs", "new_path": "antenna_forwarding_client/src/lib.rs", "diff": "@@ -271,6 +271,7 @@ fn find_antenna<S: ::std::hash::BuildHasher>(\nip: IpAddr,\ninterfaces: &HashSet<String, S>,\n) -> Result<String, Error> {\n+ check_blacklis...
Rust
Apache License 2.0
althea-net/althea_rs
Add basic antenna blacklist
20,244
14.04.2020 14:42:46
14,400
79249cfdd1903f666ae811f50770663507355411
Add phone number and email to heartbeat This should let us have the instantaniously updated contact details we want without any user privacy risk as this message is encrypted
[ { "change_type": "MODIFY", "old_path": "althea_types/src/interop.rs", "new_path": "althea_types/src/interop.rs", "diff": "@@ -385,6 +385,13 @@ pub struct OperatorCheckinMessage {\npub id: Identity,\n}\n+/// Struct for storing user contact details\n+#[derive(Debug, Clone, Serialize, Deserialize)]\n+p...
Rust
Apache License 2.0
althea-net/althea_rs
Add phone number and email to heartbeat This should let us have the instantaniously updated contact details we want without any user privacy risk as this message is encrypted
20,244
14.04.2020 17:14:06
14,400
ed5193221e0d411b4ac2042c55d57bdc3e773d0e
Working OperatorCheckin Added some things we need to properly process this on the operator tools server side of things. Plus testing of course.
[ { "change_type": "MODIFY", "old_path": "althea_types/src/interop.rs", "new_path": "althea_types/src/interop.rs", "diff": "@@ -383,6 +383,8 @@ pub struct OperatorUpdateMessage {\n#[derive(Debug, Clone, Serialize, Deserialize)]\npub struct OperatorCheckinMessage {\npub id: Identity,\n+ pub operator_ad...
Rust
Apache License 2.0
althea-net/althea_rs
Working OperatorCheckin Added some things we need to properly process this on the operator tools server side of things. Plus testing of course.
20,244
14.04.2020 17:25:00
14,400
c65d2d2478c48e506c132bfb86a81455bc7bbcc1
Add balance notification to Heartbeat I would like to move the task of notifying users about their balance to the operator tools server, since it's more accessible to operators
[ { "change_type": "MODIFY", "old_path": "althea_types/src/interop.rs", "new_path": "althea_types/src/interop.rs", "diff": "@@ -417,6 +417,8 @@ pub struct HeartbeatMessage {\n/// The babel Neighbor over which our traffic flows, this gives us the Reach\n/// (packet loss over 16 seconds) as well as the ...
Rust
Apache License 2.0
althea-net/althea_rs
Add balance notification to Heartbeat I would like to move the task of notifying users about their balance to the operator tools server, since it's more accessible to operators
20,244
14.04.2020 17:33:01
14,400
3d71d377121d60c83556ae94f335a25c3a458fce
Bump For Beta 13 RC1
[ { "change_type": "MODIFY", "old_path": "Cargo.lock", "new_path": "Cargo.lock", "diff": "@@ -2629,7 +2629,7 @@ dependencies = [\n[[package]]\nname = \"rita\"\n-version = \"0.5.39\"\n+version = \"0.5.40\"\ndependencies = [\n\"actix\",\n\"actix-web\",\n" }, { "change_type": "MODIFY", "old_p...
Rust
Apache License 2.0
althea-net/althea_rs
Bump For Beta 13 RC1
20,244
14.04.2020 17:49:52
14,400
db4fc0ee3cbf4ba9eb53c10997ab2dba4b2f7144
Disable low balance notifications from the exit During the transition between exit and operator tools for low balance notifications some devices will be updated while others will not. Since we can't disable the old system until the conversion is complete we should short circuit it on new devices to avoid double notifyi...
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_client/exit_manager/mod.rs", "new_path": "rita/src/rita_client/exit_manager/mod.rs", "diff": "@@ -329,11 +329,6 @@ fn exit_status_request(exit: String) -> impl Future<Item = (), Error = Error> {\nas Box<dyn Future<Item = (), Error = Error>>;\n}\n...
Rust
Apache License 2.0
althea-net/althea_rs
Disable low balance notifications from the exit During the transition between exit and operator tools for low balance notifications some devices will be updated while others will not. Since we can't disable the old system until the conversion is complete we should short circuit it on new devices to avoid double notify...
20,244
15.04.2020 13:21:29
14,400
f7a2d1cae9c5f0588f3932b6da2db80ccf7fb3d9
Add company name to LICENSE This is an oversight when adding the LICENSE.
[ { "change_type": "MODIFY", "old_path": "LICENSE", "new_path": "LICENSE", "diff": "same \"printed page\" as the copyright notice for easier\nidentification within third-party archives.\n- Copyright [yyyy] [name of copyright owner]\n+ Copyright 2020 Hawk Networks INC\nLicensed under the Apache License...
Rust
Apache License 2.0
althea-net/althea_rs
Add company name to LICENSE This is an oversight when adding the LICENSE.
20,244
15.04.2020 15:32:59
14,400
88789d69f73ae60d93e01c9fbe8bde9b0c3fc351
Don't restrict phone forwards by source Preventing spoofed or lan packets is handled elsewhere, also the phone sends packets with the dst field set to the internet destination address.
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_client/light_client_manager/mod.rs", "new_path": "rita/src/rita_client/light_client_manager/mod.rs", "diff": "@@ -62,8 +62,6 @@ fn setup_light_client_forwarding(client_addr: Ipv4Addr, nic: &str) -> Result<(),\n&nic,\n\"--src\",\n&format!(\"{}/32\...
Rust
Apache License 2.0
althea-net/althea_rs
Don't restrict phone forwards by source Preventing spoofed or lan packets is handled elsewhere, also the phone sends packets with the dst field set to the internet destination address.
20,244
15.04.2020 16:40:43
14,400
59cb0bcba243d0dd4d6c3d02ba01751968717678
Fix deadlock when disabling automated pricing Yet another implicit deadlock gotcha. There really needs to be a static tool to detect these.
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_client/dashboard/prices.rs", "new_path": "rita/src/rita_client/dashboard/prices.rs", "diff": "@@ -24,6 +24,7 @@ pub fn set_auto_pricing(path: Path<bool>) -> Result<HttpResponse, Error> {\nif !op.force_use_operator_price {\nop.use_operator_price =...
Rust
Apache License 2.0
althea-net/althea_rs
Fix deadlock when disabling automated pricing Yet another implicit deadlock gotcha. There really needs to be a static tool to detect these.
20,244
16.04.2020 07:11:25
14,400
68e6786d6846a5359f0c3297633f3e6b975ea75d
Fix xdai serialization I guess we've always used debug print before
[ { "change_type": "MODIFY", "old_path": "althea_types/src/interop.rs", "new_path": "althea_types/src/interop.rs", "diff": "@@ -106,7 +106,7 @@ impl Display for SystemChain {\nmatch self {\nSystemChain::Ethereum => write!(f, \"Ethereum\"),\nSystemChain::Rinkeby => write!(f, \"Rinkeby\"),\n- SystemChai...
Rust
Apache License 2.0
althea-net/althea_rs
Fix xdai serialization I guess we've always used debug print before
20,244
16.04.2020 08:54:18
14,400
775c48ebe1264d0d01a651b9620bdc5d0bfabc29
Add backend port for operator checkin I could have redirected this using nginx but why bother?
[ { "change_type": "MODIFY", "old_path": "settings/src/operator.rs", "new_path": "settings/src/operator.rs", "diff": "@@ -27,7 +27,7 @@ fn default_force_use_operator_price() -> bool {\n/// The url for checking in with the operator server.\n/// if you are changing this double check the default currency...
Rust
Apache License 2.0
althea-net/althea_rs
Add backend port for operator checkin I could have redirected this using nginx but why bother?
20,244
16.04.2020 12:16:18
14,400
9779c92249bfb70a1561e49a30eb1aabf62bae3d
Backoff for network monitor Previously network monitor could reduce the speed of a link but would never increase it again. This modifies the module to increase the the speed if it determins (by heuristic) that the link is doing ok. This is rate limited in order to prevent too much see-sawing in bandwidth.
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_common/network_monitor/mod.rs", "new_path": "rita/src/rita_common/network_monitor/mod.rs", "diff": "//! on traffic over every interface and base our action off of spikes in throughput as well as spikes in latency.\nuse crate::rita_common::rita_lo...
Rust
Apache License 2.0
althea-net/althea_rs
Backoff for network monitor Previously network monitor could reduce the speed of a link but would never increase it again. This modifies the module to increase the the speed if it determins (by heuristic) that the link is doing ok. This is rate limited in order to prevent too much see-sawing in bandwidth.
20,244
16.04.2020 14:00:36
14,400
48aa972db6ba3a8ebb7e7c177432c34ad699d30c
Show correct 5ghz channel options for ea6350v3
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_client/dashboard/wifi.rs", "new_path": "rita/src/rita_client/dashboard/wifi.rs", "diff": "@@ -24,8 +24,8 @@ pub const ALLOWED_FIVE_20: [u16; 22] = [\npub const ALLOWED_FIVE_40: [u16; 12] = [36, 44, 52, 60, 100, 108, 116, 124, 132, 140, 149, 157];...
Rust
Apache License 2.0
althea-net/althea_rs
Show correct 5ghz channel options for ea6350v3
20,244
16.04.2020 15:15:47
14,400
efd47db26d58d8d4c9aa42c736f57d2c7939f387
Reset nat rules after wifi parameter change
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_client/dashboard/wifi.rs", "new_path": "rita/src/rita_client/dashboard/wifi.rs", "diff": "@@ -140,6 +140,9 @@ fn set_ssid(wifi_ssid: &WifiSSID) -> Result<HttpResponse, Error> {\n// if the ssid is too long but don't block on that\nlet _ = maybe_se...
Rust
Apache License 2.0
althea-net/althea_rs
Reset nat rules after wifi parameter change
20,244
17.04.2020 12:32:20
14,400
6f1ded1abae1846cd8300cce9d2da443a71a075f
Improve operator update doc comments
[ { "change_type": "MODIFY", "old_path": "althea_types/src/interop.rs", "new_path": "althea_types/src/interop.rs", "diff": "@@ -365,17 +365,36 @@ impl FromStr for ReleaseStatus {\n/// Operator update that we get from the operator server during our checkin\n#[derive(Debug, Clone, Serialize, Deserialize...
Rust
Apache License 2.0
althea-net/althea_rs
Improve operator update doc comments
20,244
18.04.2020 08:37:31
14,400
9d3c8b2e2f48dcba618738e53ebbbf39a1a26c82
Rename OperatorUpdate 'client' to 'relay' This will require some code changes in other places, but it's the last chance I'll get to fix this naming mistake probably for years
[ { "change_type": "MODIFY", "old_path": "althea_types/src/interop.rs", "new_path": "althea_types/src/interop.rs", "diff": "@@ -365,9 +365,13 @@ impl FromStr for ReleaseStatus {\n/// Operator update that we get from the operator server during our checkin\n#[derive(Debug, Clone, Serialize, Deserialize)...
Rust
Apache License 2.0
althea-net/althea_rs
Rename OperatorUpdate 'client' to 'relay' This will require some code changes in other places, but it's the last chance I'll get to fix this naming mistake probably for years
20,244
18.04.2020 15:18:57
14,400
37467aae503440ecd7b4a92dc601b2546cf4f83a
Note how long it takes enforcement to gather data This is taking quite a bit of time in prod, probably because it re-runs tc all the time but I want to be sure I'm barking up the right tree
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_exit/database/mod.rs", "new_path": "rita/src/rita_exit/database/mod.rs", "diff": "@@ -493,6 +493,11 @@ pub fn enforce_exit_clients(clients_list: Vec<exit_db::models::Client>) -> Resul\n}\n}\nlet list = get_debts_list_sync();\n+ info!(\n+ \"Exit e...
Rust
Apache License 2.0
althea-net/althea_rs
Note how long it takes enforcement to gather data This is taking quite a bit of time in prod, probably because it re-runs tc all the time but I want to be sure I'm barking up the right tree
20,244
18.04.2020 16:04:08
14,400
5e9b0de35695fdb5ba622b82334937f6da5ef14f
Delta based exit enforcement Right now we run hundreds of tc commands per loop in order to handle enforcement. This is by far the longest time in the exit loop. Here we implement the same delta strategy as the wg_exit tunnel to avoid setting things up when we don't have to.
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_common/debt_keeper/mod.rs", "new_path": "rita/src/rita_common/debt_keeper/mod.rs", "diff": "@@ -303,7 +303,7 @@ impl Message for SendUpdate {\n/// Actions to be taken upon a neighbor's debt reaching either a negative or positive\n/// threshold.\n...
Rust
Apache License 2.0
althea-net/althea_rs
Delta based exit enforcement Right now we run hundreds of tc commands per loop in order to handle enforcement. This is by far the longest time in the exit loop. Here we implement the same delta strategy as the wg_exit tunnel to avoid setting things up when we don't have to.
20,244
19.04.2020 07:23:41
14,400
f6d7a3addc3fd3e8259cb539dc8dd88b9f032759
Refer to exit clients with wg keys
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_exit/database/mod.rs", "new_path": "rita/src/rita_exit/database/mod.rs", "diff": "@@ -379,13 +379,13 @@ pub fn cleanup_exit_clients(\nif client.last_seen == 0 {\ninfo!(\n\"{} does not have a last seen timestamp, adding one now \",\n- client.mesh_...
Rust
Apache License 2.0
althea-net/althea_rs
Refer to exit clients with wg keys
20,244
19.04.2020 10:24:21
14,400
e87497400cecebd1ed400f0c139e7fc8c055a071
Add operator action A basic struct for performing things an operator may like to do
[ { "change_type": "MODIFY", "old_path": "althea_types/src/interop.rs", "new_path": "althea_types/src/interop.rs", "diff": "@@ -362,6 +362,13 @@ impl FromStr for ReleaseStatus {\n}\n}\n+/// Somthing the operator may want to do to a router under their control\n+#[derive(Debug, Clone, Copy, Serialize, D...
Rust
Apache License 2.0
althea-net/althea_rs
Add operator action A basic struct for performing things an operator may like to do
20,244
19.04.2020 10:33:15
14,400
704a366514962bd9b414c62064d76a3ea0c5f93c
Sperate prices for light clients
[ { "change_type": "MODIFY", "old_path": "althea_types/src/interop.rs", "new_path": "althea_types/src/interop.rs", "diff": "@@ -378,13 +378,23 @@ pub struct OperatorUpdateMessage {\n/// forbidden with 'force_operator_price' this value can be changed by the user\n/// see the situation described in the ...
Rust
Apache License 2.0
althea-net/althea_rs
Sperate prices for light clients
20,244
19.04.2020 11:47:38
14,400
65f272212d7a45ca4a2f5c988394d44d34d7c317
Improve exit fast fail message
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_exit/rita_loop/mod.rs", "new_path": "rita/src/rita_exit/rita_loop/mod.rs", "diff": "@@ -168,9 +168,14 @@ fn rita_exit_loop(\nErr(e) => {\nerror!(\"Failed to get database connection with {}\", e);\nif !*successful_setup {\n- error!(\"Failed to get...
Rust
Apache License 2.0
althea-net/althea_rs
Improve exit fast fail message
20,244
19.04.2020 13:00:32
14,400
4983907b413f96d5fa733560088bfba145a85aa4
Skip mesh interface for forwarding there can't be any antennas there anyways
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_client/src/lib.rs", "new_path": "antenna_forwarding_client/src/lib.rs", "diff": "@@ -274,6 +274,10 @@ fn find_antenna<S: ::std::hash::BuildHasher>(\ncheck_blacklist(ip)?;\nlet our_ip = get_local_ip(ip)?;\nfor iface in interfaces {\n+ if ifac...
Rust
Apache License 2.0
althea-net/althea_rs
Skip mesh interface for forwarding there can't be any antennas there anyways
20,244
19.04.2020 13:01:11
14,400
ae3a2c9b44d741453853e0f200f38a39fcdea660
Fix no available connection error message
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_exit/database/database_tools.rs", "new_path": "rita/src/rita_exit/database/database_tools.rs", "diff": "@@ -324,7 +324,7 @@ pub fn get_database_connection(\ndyn Future<Item = PooledConnection<ConnectionManager<PgConnection>>, Error = Error>,\n>,\...
Rust
Apache License 2.0
althea-net/althea_rs
Fix no available connection error message
20,244
19.04.2020 15:02:15
14,400
fe5d3d0239e75211b19f35a0cabc6b4ae247f24f
Harden forwarding There where still a number of expecs and unwraps that needed to be removed here.
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_client/src/lib.rs", "new_path": "antenna_forwarding_client/src/lib.rs", "diff": "@@ -159,11 +159,12 @@ fn process_messages(\ntrace!(\"Got close message for stream {}\", stream_id);\n*last_message = Instant::now();\nlet stream_id = stream_id;...
Rust
Apache License 2.0
althea-net/althea_rs
Harden forwarding There where still a number of expecs and unwraps that needed to be removed here.
20,244
20.04.2020 07:24:49
14,400
9204cf44fb94d3ac4c7eb6c62f35b982ffc7849b
Fix wait timeout to actually timeout did not do so before
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_exit/rita_loop/wait_timeout.rs", "new_path": "rita/src/rita_exit/rita_loop/wait_timeout.rs", "diff": "@@ -18,13 +18,13 @@ pub enum WaitResult<F: Future> {\n}\npub fn wait_timeout<F: Future>(f: F, dur: Duration) -> WaitResult<F> {\n- let now = Ins...
Rust
Apache License 2.0
althea-net/althea_rs
Fix wait timeout to actually timeout did not do so before
20,244
20.04.2020 08:23:28
14,400
6c3abfdafa91bfbb531509df15c5ac4faa1595eb
Fix heartbeat url for Beta 12 routers
[ { "change_type": "MODIFY", "old_path": "rita/src/client.rs", "new_path": "rita/src/client.rs", "diff": "@@ -191,7 +191,7 @@ fn wait_for_settings(settings_file: &str) -> RitaSettingsStruct {\n}\nfn main() {\n- // Remove in Beta 13, migrates settings from the old dao structure to\n+ // Remove in Beta ...
Rust
Apache License 2.0
althea-net/althea_rs
Fix heartbeat url for Beta 12 routers
20,244
20.04.2020 09:43:57
14,400
915badb4e341049cc5925b453121ebaae0ea7c62
We need to parse the checkin address every round Otherwise DNS resolution may fail the first time and block us forever. not to mention changing the underlying ip that points to would require a reboot if we updated the dns entry.
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_client/src/lib.rs", "new_path": "antenna_forwarding_client/src/lib.rs", "diff": "@@ -56,6 +56,10 @@ pub fn start_antenna_forwarding_proxy<S: 'static + std::marker::Send + ::std::ha\ninterfaces_to_search: HashSet<String, S>,\n) {\ninfo!(\"Sta...
Rust
Apache License 2.0
althea-net/althea_rs
We need to parse the checkin address every round Otherwise DNS resolution may fail the first time and block us forever. not to mention changing the underlying ip that points to would require a reboot if we updated the dns entry.
20,244
20.04.2020 09:58:07
14,400
2024f1df1a52a727af52e6ffb8b4c788fe134dc1
Better log babel heartbeat issues
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_client/heartbeat/mod.rs", "new_path": "rita/src/rita_client/heartbeat/mod.rs", "diff": "@@ -40,6 +40,7 @@ lazy_static! {\n}\npub fn send_udp_heartbeat() {\n+ trace!(\"attempting to send heartbeat\");\nlet dns_request = Resolver::from_registry()\n...
Rust
Apache License 2.0
althea-net/althea_rs
Better log babel heartbeat issues
20,244
20.04.2020 10:29:47
14,400
f11be5f1b96c4f737279b00723dedd9f12285de0
Beta 13 RC3 * Waits longer for Babel in some cases where that's required * Better logging for heartbeat failures * Resolves the heartbeat address more reliably * Ensures that Beta 12 routers have the right heartbeat address during upgrades
[ { "change_type": "MODIFY", "old_path": "Cargo.lock", "new_path": "Cargo.lock", "diff": "@@ -2629,7 +2629,7 @@ dependencies = [\n[[package]]\nname = \"rita\"\n-version = \"0.5.40\"\n+version = \"0.5.42\"\ndependencies = [\n\"actix\",\n\"actix-web\",\n" }, { "change_type": "MODIFY", "old_p...
Rust
Apache License 2.0
althea-net/althea_rs
Beta 13 RC3 * Waits longer for Babel in some cases where that's required * Better logging for heartbeat failures * Resolves the heartbeat address more reliably * Ensures that Beta 12 routers have the right heartbeat address during upgrades
20,244
20.04.2020 10:33:17
14,400
835293c5272632c2d2249693c5a5b1af0e819d39
Prevent heartbeat loop from exiting prematurely We don't need to return here, instead we should continue, now that the block has been moved down the context of the statement has changed
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_client/src/lib.rs", "new_path": "antenna_forwarding_client/src/lib.rs", "diff": "@@ -65,12 +65,12 @@ pub fn start_antenna_forwarding_proxy<S: 'static + std::marker::Send + ::std::ha\nSome(socket) => socket,\nNone => {\nerror!(\"Could not par...
Rust
Apache License 2.0
althea-net/althea_rs
Prevent heartbeat loop from exiting prematurely We don't need to return here, instead we should continue, now that the block has been moved down the context of the statement has changed
20,244
20.04.2020 18:25:01
14,400
483e8a6da73b99db169cf16d61ca052c2066b618
Better tracing for antenna forwarding
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_client/src/lib.rs", "new_path": "antenna_forwarding_client/src/lib.rs", "diff": "@@ -232,6 +232,9 @@ fn forward_connections(\n);\nwhile let Ok(vec) = ForwardingProtocolMessage::read_messages(&mut server_stream) {\n+ if !vec.is_empty() {\n+ t...
Rust
Apache License 2.0
althea-net/althea_rs
Better tracing for antenna forwarding
20,244
20.04.2020 19:54:24
14,400
994efa9940f0555e9ccfbd461222eb2e00f6efda
Panic when there are bytes remaining trying to track down a parsing issue I think this is caused by us coming in to read a packet as it is half written
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_protocol/src/lib.rs", "new_path": "antenna_forwarding_protocol/src/lib.rs", "diff": "@@ -536,6 +536,7 @@ impl ForwardingProtocolMessage {\nremaining_bytes: Vec<u8>,\nmessages: Vec<ForwardingProtocolMessage>,\n) -> Result<Vec<ForwardingProtoc...
Rust
Apache License 2.0
althea-net/althea_rs
Panic when there are bytes remaining trying to track down a parsing issue I think this is caused by us coming in to read a packet as it is half written
20,244
21.04.2020 10:05:30
14,400
4c2fd299822d9613aa8f3a452d9eb4a36b675783
Add error type for forwarding protocol This should help us identify when packets are half written and keep trying to read them
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_protocol/src/lib.rs", "new_path": "antenna_forwarding_protocol/src/lib.rs", "diff": "@@ -18,11 +18,15 @@ extern crate lazy_static;\nuse althea_types::Identity;\nuse althea_types::WgKey;\n-use failure::Error;\n+use failure::Error as FailureEr...
Rust
Apache License 2.0
althea-net/althea_rs
Add error type for forwarding protocol This should help us identify when packets are half written and keep trying to read them
20,244
21.04.2020 10:12:15
14,400
c116d457dfc52ccef5146b534f2d91e7d2b4be74
Read partial packets Slice size errors are caused when we read packets that aren't quite done writing yet. This patch continues to read large packets until they finish or until the read times out.
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_protocol/src/lib.rs", "new_path": "antenna_forwarding_protocol/src/lib.rs", "diff": "@@ -571,6 +571,7 @@ impl ForwardingProtocolMessage {\ninput,\nbytes[bytes_read..].to_vec(),\nvec![msg],\n+ 0,\n)\n}\n@@ -579,15 +580,21 @@ impl ForwardingPr...
Rust
Apache License 2.0
althea-net/althea_rs
Read partial packets Slice size errors are caused when we read packets that aren't quite done writing yet. This patch continues to read large packets until they finish or until the read times out.
20,244
21.04.2020 12:46:42
14,400
cee8f8f5e56b6c20baa7731b790042c34869712c
Read partial packets for encrypted start messages The same situation applies here with a few more edge cases. We may get partially completed messages and need to recurse to finish them
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_protocol/src/lib.rs", "new_path": "antenna_forwarding_protocol/src/lib.rs", "diff": "@@ -556,17 +556,54 @@ impl ForwardingProtocolMessage {\nserver_publickey: WgKey,\nclient_secretkey: WgKey,\n) -> Result<Vec<ForwardingProtocolMessage>, Fail...
Rust
Apache License 2.0
althea-net/althea_rs
Read partial packets for encrypted start messages The same situation applies here with a few more edge cases. We may get partially completed messages and need to recurse to finish them
20,244
21.04.2020 14:33:31
14,400
c2d20ce4e84abb7f3658a69aaa26d72cc81a81bc
Consistent network monitor logging messages
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_common/network_monitor/mod.rs", "new_path": "rita/src/rita_common/network_monitor/mod.rs", "diff": "@@ -335,7 +335,7 @@ fn observe_network(\n(Some(key), Some(avg), Some(std_dev)) => {\nif running_stats.is_bloated() {\ninfo!(\n- \"{} is defined as...
Rust
Apache License 2.0
althea-net/althea_rs
Consistent network monitor logging messages
20,244
21.04.2020 15:38:53
14,400
f900e43b1f2c3e2dfcd870fdf497768d50a9d3a0
Rescue xdai bridge stuck in Depositing This bug has been cropping up for months now right under my nose. I never considered that do_send could fail. But in retrospect it's outlined clearly in the doc comment that it often will
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_common/token_bridge/mod.rs", "new_path": "rita/src/rita_common/token_bridge/mod.rs", "diff": "@@ -73,8 +73,8 @@ use std::time::Duration;\nuse std::time::Instant;\nconst BRIDGE_TIMEOUT: Duration = Duration::from_secs(3600);\n-const UNISWAP_TIMEOUT...
Rust
Apache License 2.0
althea-net/althea_rs
Rescue xdai bridge stuck in Depositing This bug has been cropping up for months now right under my nose. I never considered that do_send could fail. But in retrospect it's outlined clearly in the doc comment that it often will
20,244
21.04.2020 17:21:26
14,400
51c8988c4f5316d215eee72c2741d86199aefe9a
Remove duplicate log for geoip The log statement is a funny way to avoid the 'value is never used' warning
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_exit/database/geoip.rs", "new_path": "rita/src/rita_exit/database/geoip.rs", "diff": "@@ -162,12 +162,6 @@ pub fn get_country(ip: IpAddr) -> Result<String, Error> {\nmatch cache_result {\nSome(code) => Ok(code),\nNone => {\n- let geo_ip_url = for...
Rust
Apache License 2.0
althea-net/althea_rs
Remove duplicate log for geoip The log statement is a funny way to avoid the 'value is never used' warning
20,244
22.04.2020 07:29:46
14,400
3e39bdd44ee97937f6cdfbf145f14a08fcb07f46
Support 32 byte packet lengths for forwarding protocol
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_protocol/src/lib.rs", "new_path": "antenna_forwarding_protocol/src/lib.rs", "diff": "@@ -43,12 +43,12 @@ pub const SPINLOCK_TIME: Duration = Duration::from_millis(100);\n/// The amount of time to wait for a blocking read\npub const NET_TIMEO...
Rust
Apache License 2.0
althea-net/althea_rs
Support 32 byte packet lengths for forwarding protocol
20,244
22.04.2020 07:29:46
14,400
08dcf03fdcfa3cc7aafd8747e6e3f911659275bd
More robust timeouts for tcp message parsing This came down to a decision to discard packets and then find the new correct parsing start point or just trusting the underlying transport it seems that trusting the transport was a good decision because testing with netem is quite positive.
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_client/src/lib.rs", "new_path": "antenna_forwarding_client/src/lib.rs", "diff": "@@ -57,7 +57,7 @@ pub fn start_antenna_forwarding_proxy<S: 'static + std::marker::Send + ::std::ha\n) {\ninfo!(\"Starting antenna forwarding proxy!\");\nthread:...
Rust
Apache License 2.0
althea-net/althea_rs
More robust timeouts for tcp message parsing This came down to a decision to discard packets and then find the new correct parsing start point or just trusting the underlying transport it seems that trusting the transport was a good decision because testing with netem is quite positive.
20,244
22.04.2020 10:28:44
14,400
93fc818382afeae80a5168dc34d65b5b8b25094b
Add version string to heartbeats This is generally useful to have so that we understand what device we're dealing with
[ { "change_type": "MODIFY", "old_path": "althea_types/src/interop.rs", "new_path": "althea_types/src/interop.rs", "diff": "@@ -467,4 +467,6 @@ pub struct HeartbeatMessage {\npub notify_balance: bool,\n/// The exit registration contact details. If set\npub contact_details: ContactDetails,\n+ /// The r...
Rust
Apache License 2.0
althea-net/althea_rs
Add version string to heartbeats This is generally useful to have so that we understand what device we're dealing with
20,244
22.04.2020 13:29:32
14,400
9acad40c1687f8e9f0a48ea7c6eee3ef8798446f
Print full packets on parsing errors Looks like I'm not going to get this one today, have to investigate another wonky parsing error tomorrow
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_protocol/src/lib.rs", "new_path": "antenna_forwarding_protocol/src/lib.rs", "diff": "@@ -684,7 +684,8 @@ impl ForwardingProtocolMessage {\nif num_remaining_bytes != 0 {\ntrace!(\n- \"Got message recursing for remaining bytes {}\",\n+ \"Got m...
Rust
Apache License 2.0
althea-net/althea_rs
Print full packets on parsing errors Looks like I'm not going to get this one today, have to investigate another wonky parsing error tomorrow
20,244
22.04.2020 16:48:18
14,400
b9c26d1f12382795b2605ed17dcaa78a7e0d7ab3
Use write instead of write_all Write all had some problematic semantics when combined with nonblocking mainly that it would write but not wait for blocking, leaving you without a way to know which bytes you had already written. Instead we can use write directly with only a little extra complexity.
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_protocol/src/lib.rs", "new_path": "antenna_forwarding_protocol/src/lib.rs", "diff": "@@ -84,23 +84,33 @@ impl Display for ForwardingProtocolError {\n/// Writes data to a stream keeping in mind that we may encounter\n/// a buffer limit and ha...
Rust
Apache License 2.0
althea-net/althea_rs
Use write instead of write_all Write all had some problematic semantics when combined with nonblocking mainly that it would write but not wait for blocking, leaving you without a way to know which bytes you had already written. Instead we can use write directly with only a little extra complexity.
20,244
22.04.2020 17:27:30
14,400
2593d019816912925798e3685cebb125ba086e28
Add depth limits to write recursion An infinite recursion case can occur here if the operating system does not allocate the require space to write to. Lets not make that already bad situation worse.
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_protocol/src/lib.rs", "new_path": "antenna_forwarding_protocol/src/lib.rs", "diff": "@@ -84,12 +84,27 @@ impl Display for ForwardingProtocolError {\n/// Writes data to a stream keeping in mind that we may encounter\n/// a buffer limit and ha...
Rust
Apache License 2.0
althea-net/althea_rs
Add depth limits to write recursion An infinite recursion case can occur here if the operating system does not allocate the require space to write to. Lets not make that already bad situation worse.
20,244
22.04.2020 18:58:43
14,400
cb9d2a377f360592a5cade4371612c26bf6a5357
Bump for Beta 13 RC4
[ { "change_type": "MODIFY", "old_path": "Cargo.lock", "new_path": "Cargo.lock", "diff": "@@ -2629,7 +2629,7 @@ dependencies = [\n[[package]]\nname = \"rita\"\n-version = \"0.5.42\"\n+version = \"0.5.43\"\ndependencies = [\n\"actix\",\n\"actix-web\",\n" }, { "change_type": "MODIFY", "old_p...
Rust
Apache License 2.0
althea-net/althea_rs
Bump for Beta 13 RC4
20,244
23.04.2020 18:05:35
14,400
9e3dd57ad33cc16cf9d148e8cfdc8a0683a2f5ed
Don't call set_system_blockchain every time It zeros out the balance and that causes all sorts of trouble
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_client/operator_update/mod.rs", "new_path": "rita/src/rita_client/operator_update/mod.rs", "diff": "@@ -139,8 +139,10 @@ fn checkin() {\npayment.max_fee = new_settings.max;\npayment.balance_warning_level = new_settings.warning.into();\nif let Som...
Rust
Apache License 2.0
althea-net/althea_rs
Don't call set_system_blockchain every time It zeros out the balance and that causes all sorts of trouble
20,244
23.04.2020 18:11:02
14,400
c179c72c4ed00f843da159b3e5f51b91d4e581ba
Fix a variety of new clippy nits
[ { "change_type": "MODIFY", "old_path": "rita/src/client.rs", "new_path": "rita/src/client.rs", "diff": "@@ -30,8 +30,6 @@ extern crate arrayvec;\nuse actix_web::http::Method;\nuse actix_web::{http, server, App};\nuse docopt::Docopt;\n-use env_logger;\n-use openssl_probe;\nuse settings::client::{Rita...
Rust
Apache License 2.0
althea-net/althea_rs
Fix a variety of new clippy nits
20,244
24.04.2020 10:30:42
14,400
68dd2e1909b41e482bf8052f7ec63cd1dd283348
Bump for Beta 13 RC5
[ { "change_type": "MODIFY", "old_path": "Cargo.lock", "new_path": "Cargo.lock", "diff": "@@ -2629,7 +2629,7 @@ dependencies = [\n[[package]]\nname = \"rita\"\n-version = \"0.5.43\"\n+version = \"0.5.44\"\ndependencies = [\n\"actix\",\n\"actix-web\",\n" }, { "change_type": "MODIFY", "old_p...
Rust
Apache License 2.0
althea-net/althea_rs
Bump for Beta 13 RC5
20,244
25.04.2020 13:14:59
14,400
f34f1a8f6f3e40ac344b18e438e8946efc8a9446
Lift stats processing into Althea types this way we can get statistics from anywhere and import them more easily into for example the operator tools server
[ { "change_type": "MODIFY", "old_path": "althea_types/src/interop.rs", "new_path": "althea_types/src/interop.rs", "diff": "@@ -367,6 +367,7 @@ impl FromStr for ReleaseStatus {\npub enum OperatorAction {\nResetRouterPassword,\nResetWiFiPassword,\n+ ResetShaper,\n}\n/// Operator update that we get from...
Rust
Apache License 2.0
althea-net/althea_rs
Lift stats processing into Althea types this way we can get statistics from anywhere and import them more easily into for example the operator tools server
20,244
25.04.2020 16:48:16
14,400
934a0b0c34d0ce5ac34c70d1ff1ff36ed1e9f162
Bump for Beta 13 RC6
[ { "change_type": "MODIFY", "old_path": "Cargo.lock", "new_path": "Cargo.lock", "diff": "@@ -2629,7 +2629,7 @@ dependencies = [\n[[package]]\nname = \"rita\"\n-version = \"0.5.44\"\n+version = \"0.5.45\"\ndependencies = [\n\"actix\",\n\"actix-web\",\n" }, { "change_type": "MODIFY", "old_p...
Rust
Apache License 2.0
althea-net/althea_rs
Bump for Beta 13 RC6
20,244
26.04.2020 08:28:48
14,400
4957e31c9d78718336c7fb77c5671122fb8d19a7
Forgot to update the human readable version
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_common/dashboard/own_info.rs", "new_path": "rita/src/rita_common/dashboard/own_info.rs", "diff": "@@ -6,7 +6,7 @@ use failure::Error;\nuse num256::{Int256, Uint256};\nuse settings::RitaCommonSettings;\n-pub static READABLE_VERSION: &str = \"Beta ...
Rust
Apache License 2.0
althea-net/althea_rs
Forgot to update the human readable version
20,244
26.04.2020 08:44:32
14,400
95bd87eaea0506a519a3c67d27af61aad8f26699
Add eq to some types
[ { "change_type": "MODIFY", "old_path": "althea_types/src/interop.rs", "new_path": "althea_types/src/interop.rs", "diff": "@@ -462,7 +462,7 @@ pub struct OperatorCheckinMessage {\n/// Struct for storing peer status data for reporting to the operator tools server\n/// the goal is to give a full pictur...
Rust
Apache License 2.0
althea-net/althea_rs
Add eq to some types
20,244
26.04.2020 12:46:07
14,400
11bc0a6e776ce84ce237acfd9ee889f8f05da354
Reset on speed reduction I've found that it's very easy to pollute a connection's history such that the std-dev will amost never reach back to normal levels. This quickly results in a cycle of connection downgrade operations all the way to zero, lets see how this operates instead
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_common/network_monitor/mod.rs", "new_path": "rita/src/rita_common/network_monitor/mod.rs", "diff": "@@ -208,7 +208,7 @@ fn observe_network(\niface: iface.to_string(),\naction: ShapingAdjustAction::ReduceSpeed,\n});\n- running_stats.set_last_chang...
Rust
Apache License 2.0
althea-net/althea_rs
Reset on speed reduction I've found that it's very easy to pollute a connection's history such that the std-dev will amost never reach back to normal levels. This quickly results in a cycle of connection downgrade operations all the way to zero, lets see how this operates instead
20,244
26.04.2020 20:10:50
14,400
b1ed3e110c0029a23219a4556ce7c6bd1f1b1655
Reject BS identity packets
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_protocol/src/lib.rs", "new_path": "antenna_forwarding_protocol/src/lib.rs", "diff": "@@ -491,6 +491,16 @@ impl ForwardingProtocolMessage {\n} else if packet_type > 6 {\nreturn Err(ForwardingProtocolError::WrongPacketType);\n} else if packet_...
Rust
Apache License 2.0
althea-net/althea_rs
Reject BS identity packets
20,244
27.04.2020 09:00:57
14,400
c3a039f6241c07dc1c1726133f444c77dc3b47cc
Return to old method for shaping down This simply has less false positives and works better somehow. I'll keep iterating on the upward metric.
[ { "change_type": "MODIFY", "old_path": "althea_types/src/monitoring.rs", "new_path": "althea_types/src/monitoring.rs", "diff": "@@ -73,12 +73,11 @@ impl RunningLatencyStats {\npub fn is_bloated(&self) -> bool {\nlet std_dev = self.get_std_dev();\nlet avg = self.get_avg();\n- let lowest = self.lowest...
Rust
Apache License 2.0
althea-net/althea_rs
Return to old method for shaping down This simply has less false positives and works better somehow. I'll keep iterating on the upward metric.
20,244
27.04.2020 09:03:05
14,400
ca13cfe3a6c1ee7039acc3a7ce363d17ffac9ddd
Remove incorrect logging message Since we removed the continue and other control flow operators this is no longer correct
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_common/tunnel_manager/shaping.rs", "new_path": "rita/src/rita_common/tunnel_manager/shaping.rs", "diff": "@@ -148,10 +148,6 @@ impl Handler<ShapeMany> for TunnelManager {\n}\n}\n}\n- error!(\n- \"Could not find tunnel for banwdith limit with ifac...
Rust
Apache License 2.0
althea-net/althea_rs
Remove incorrect logging message Since we removed the continue and other control flow operators this is no longer correct
20,244
27.04.2020 09:23:04
14,400
0f567f21a7006df1c43ed2558f7cb566ea2c5a9a
Better comments for shaping
[ { "change_type": "MODIFY", "old_path": "althea_types/src/monitoring.rs", "new_path": "althea_types/src/monitoring.rs", "diff": "@@ -74,8 +74,23 @@ impl RunningLatencyStats {\nlet std_dev = self.get_std_dev();\nlet avg = self.get_avg();\nmatch (std_dev, avg) {\n- // you probably don't want to touch t...
Rust
Apache License 2.0
althea-net/althea_rs
Better comments for shaping
20,244
27.04.2020 09:25:04
14,400
e31e6f3cc9e1ded0e12b6c082bc834655e127e80
Bump for Beta 13 RC7
[ { "change_type": "MODIFY", "old_path": "Cargo.lock", "new_path": "Cargo.lock", "diff": "@@ -2629,7 +2629,7 @@ dependencies = [\n[[package]]\nname = \"rita\"\n-version = \"0.5.45\"\n+version = \"0.5.46\"\ndependencies = [\n\"actix\",\n\"actix-web\",\n" }, { "change_type": "MODIFY", "old_p...
Rust
Apache License 2.0
althea-net/althea_rs
Bump for Beta 13 RC7
20,244
27.04.2020 18:34:48
14,400
6cf306a2a8d1781440dcc020913bc3b5e32cb322
Advertise light_client_fee Right now we use light_client_fee in billing but do not advertise it to phones this will break things when users actually try and buy bandwidth and the router considers it an underpayment
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_client/light_client_manager/mod.rs", "new_path": "rita/src/rita_client/light_client_manager/mod.rs", "diff": "@@ -169,7 +169,8 @@ pub fn light_client_hello_response(\nwg_port: tunnel.listen_port,\nhave_tunnel: Some(have_tunnel),\ntunnel_address: ...
Rust
Apache License 2.0
althea-net/althea_rs
Advertise light_client_fee Right now we use light_client_fee in billing but do not advertise it to phones this will break things when users actually try and buy bandwidth and the router considers it an underpayment
20,244
28.04.2020 07:15:06
14,400
ef71992410bd058dd91539b58cb979844e130d84
Open should use the tunnel speed
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_common/tunnel_manager/mod.rs", "new_path": "rita/src/rita_common/tunnel_manager/mod.rs", "diff": "@@ -199,7 +199,7 @@ impl Tunnel {\n&mut SETTING.get_network_mut().default_route,\nlight_client_details,\n)?;\n- KI.set_codel_shaping(&self.iface_nam...
Rust
Apache License 2.0
althea-net/althea_rs
Open should use the tunnel speed
20,244
02.05.2020 16:50:14
14,400
13a38bd381dfb9782b36f885cc6e36826750056f
Wait on failure If we failed to connect to the antenna forwarding server we should wait the timeout before trying again. Otherwise we will overwhelm the server eventually
[ { "change_type": "MODIFY", "old_path": "antenna_forwarding_client/src/lib.rs", "new_path": "antenna_forwarding_client/src/lib.rs", "diff": "@@ -121,7 +121,6 @@ pub fn start_antenna_forwarding_proxy<S: 'static + std::marker::Send + ::std::ha\n}\nErr(e) => {\nerror!(\"Failed to read message from serve...
Rust
Apache License 2.0
althea-net/althea_rs
Wait on failure If we failed to connect to the antenna forwarding server we should wait the timeout before trying again. Otherwise we will overwhelm the server eventually
20,244
08.05.2020 16:50:44
14,400
9e1539ab1549dcac8aa24a7b28a59d3a44c830c2
Handle withdraws that move the DAI exchange rate Larger withdraws would always fail at the last step of sending over the Eth. This solves that case.
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_common/token_bridge/mod.rs", "new_path": "rita/src/rita_common/token_bridge/mod.rs", "diff": "@@ -458,7 +458,6 @@ fn xdai_bridge(state: State, bridge: &TokenBridge) {\n})),\n}));\n} else {\n- let amount_a = amount.clone();\nArbiter::spawn(\nbridg...
Rust
Apache License 2.0
althea-net/althea_rs
Handle withdraws that move the DAI exchange rate Larger withdraws would always fail at the last step of sending over the Eth. This solves that case.
20,244
10.05.2020 07:08:36
14,400
24f4da78a613960668e923a2954514dde56f8576
Improve settings merge logging
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_client/operator_update/mod.rs", "new_path": "rita/src/rita_client/operator_update/mod.rs", "diff": "@@ -252,6 +252,7 @@ fn handle_release_feed_update(val: Option<String>) {\n/// Merges an arbitrary settings string, after first filtering for sever...
Rust
Apache License 2.0
althea-net/althea_rs
Improve settings merge logging
20,244
10.05.2020 07:08:59
14,400
840fb778b6ce0a85224e612b1cff6f3dc2b95253
Remove forced heartbeat address
[ { "change_type": "MODIFY", "old_path": "rita/src/client.rs", "new_path": "rita/src/client.rs", "diff": "@@ -208,12 +208,6 @@ fn main() {\noperator.use_operator_price = dao.use_oracle_price;\n}\n}\n- // some devices are on beta 12 and therefore have the old default heartbeat\n- // url which is not co...
Rust
Apache License 2.0
althea-net/althea_rs
Remove forced heartbeat address
20,244
10.05.2020 07:16:03
14,400
123f91b91b347e2354c1517e74730f7f74468d3d
Use jemalloc as the Exit allocator Much faster performance in highly multithreaded scenarios
[ { "change_type": "MODIFY", "old_path": "Cargo.lock", "new_path": "Cargo.lock", "diff": "@@ -994,6 +994,12 @@ version = \"0.1.1\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\nchecksum = \"00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b\"\n+[[package]]\n+name =...
Rust
Apache License 2.0
althea-net/althea_rs
Use jemalloc as the Exit allocator Much faster performance in highly multithreaded scenarios
20,244
10.05.2020 21:24:27
14,400
f7c2336d81a7647f148d7f2cf1c89b9f18ba0b50
Update shaper configuration Having the shaper config just littered out in the main network settings isn't really appropriate as it becomes a more essential part of our system. Also it creates complexity where there doesn't need to be any when it comes to the way updates from the operator dash function.
[ { "change_type": "MODIFY", "old_path": "althea_types/src/interop.rs", "new_path": "althea_types/src/interop.rs", "diff": "@@ -424,16 +424,28 @@ pub struct OperatorUpdateMessage {\n/// An action the operator wants to take to affect this router, examples may include reset\n/// password or change the w...
Rust
Apache License 2.0
althea-net/althea_rs
Update shaper configuration Having the shaper config just littered out in the main network settings isn't really appropriate as it becomes a more essential part of our system. Also it creates complexity where there doesn't need to be any when it comes to the way updates from the operator dash function.
20,244
10.05.2020 21:37:51
14,400
207a0d2f34e4d53422985fbb5c4d54ec5106c8e5
Update external reference even if the shaper isn't enabled
[ { "change_type": "MODIFY", "old_path": "rita/src/rita_common/tunnel_manager/shaping.rs", "new_path": "rita/src/rita_common/tunnel_manager/shaping.rs", "diff": "@@ -21,7 +21,7 @@ lazy_static! {\n/// A cross thread accessible object representing the shaping level of a given interface, this is not perf...
Rust
Apache License 2.0
althea-net/althea_rs
Update external reference even if the shaper isn't enabled
20,244
11.05.2020 07:44:03
14,400
b0d745b233549fb00ed73fa3054571a1ce052494
Default for ShaperSettings
[ { "change_type": "MODIFY", "old_path": "althea_types/src/interop.rs", "new_path": "althea_types/src/interop.rs", "diff": "@@ -429,6 +429,7 @@ pub struct OperatorUpdateMessage {\n/// being phased out, see shaper settings TODO Remove in Beta 15\npub min_shaper_speed: Option<usize>,\n/// settings for t...
Rust
Apache License 2.0
althea-net/althea_rs
Default for ShaperSettings