BitOneZero @ .world

Hello to you!

  • 0 Posts
  • 13 Comments
Joined 1 year ago
cake
Cake day: June 15th, 2023

help-circle


  • Nothing like a little bit of corporate sabotage!

    The software developers who created Lemmy openly criticize systems of government and economics. These are nation-state battlegrounds too. The barrier to entrance is very low, as Lemmy doesn’t even do routine tracking of account creation, rate-limiting alone isn’t really defensive. 15 years ago sites like Reddit had major vote manipulation detection logic behind the scenes. This is pretty much unleashed playground for a lot of known tactics.








  • My lemmy server is also running the same versions are you are now. I was getting timeouts with lemmy.world federation so I recompiled lemmy_server with timeout changes:

    diff --git a/crates/utils/src/lib.rs b/crates/utils/src/lib.rs
    index e5d07db2c..e2c592d82 100644
    --- a/crates/utils/src/lib.rs
    +++ b/crates/utils/src/lib.rs
    @@ -18,7 +18,7 @@ use std::time::Duration;
    
     pub type ConnectionId = usize;
    
    -pub const REQWEST_TIMEOUT: Duration = Duration::from_secs(10);
    +pub const REQWEST_TIMEOUT: Duration = Duration::from_secs(13);
    
     #[macro_export]
     macro_rules! location_info {
    diff --git a/src/lib.rs b/src/lib.rs
    index cc77ca48f..45c621a7c 100644
    --- a/src/lib.rs
    +++ b/src/lib.rs
    @@ -37,7 +37,7 @@ use tracing_subscriber::{filter::Targets, layer::SubscriberExt, Layer, Registry}
     use url::Url;
    
     /// Max timeout for http requests
    -pub(crate) const REQWEST_TIMEOUT: Duration = Duration::from_secs(10);
    +pub(crate) const REQWEST_TIMEOUT: Duration = Duration::from_secs(16);
    
     /// Placing the main function in lib.rs allows other crates to import it and embed Lemmy
     pub async fn start_lemmy_server() -> Result<(), LemmyError> {