From 3d35bd9bd450f8df390fed224fe670e1d60bd85d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Sun, 16 Aug 2020 23:24:29 +0200 Subject: [PATCH] aquatic http and ws: raise default max peer and connection age There was a problem with aquatic_http with clients announcing less often than requested interval and getting purged, making file transfers less reliable --- aquatic_http/src/lib/config.rs | 4 ++-- aquatic_ws/src/lib/config.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aquatic_http/src/lib/config.rs b/aquatic_http/src/lib/config.rs index 5285cb4..1b14006 100644 --- a/aquatic_http/src/lib/config.rs +++ b/aquatic_http/src/lib/config.rs @@ -165,8 +165,8 @@ impl Default for CleaningConfig { fn default() -> Self { Self { interval: 30, - max_peer_age: 180, - max_connection_age: 180, + max_peer_age: 1800, + max_connection_age: 1800, } } } diff --git a/aquatic_ws/src/lib/config.rs b/aquatic_ws/src/lib/config.rs index b37bfe6..fdd21b7 100644 --- a/aquatic_ws/src/lib/config.rs +++ b/aquatic_ws/src/lib/config.rs @@ -161,8 +161,8 @@ impl Default for CleaningConfig { fn default() -> Self { Self { interval: 30, - max_peer_age: 180, - max_connection_age: 180, + max_peer_age: 1800, + max_connection_age: 1800, } } }