ChatGPT Codex 5.2 xhigh refactored > 45min

This commit is contained in:
2026-01-13 18:59:12 +01:00
parent f76d59265c
commit b60dcef471
15 changed files with 1672 additions and 367 deletions
+6 -3
View File
@@ -3,10 +3,13 @@
use std::time::Duration;
/// Interval between peer ping checks (seconds).
pub const PEER_PING_INTERVAL_SECS: u64 = 5;
pub const PEER_PING_INTERVAL_SECS: u64 = 20;
/// Minimum idle time before pinging a peer (seconds).
pub const PEER_PING_IDLE_SECS: u64 = 30;
/// Timeout after which a peer is considered stale (seconds).
pub const PEER_STALE_TIMEOUT_SECS: u64 = 12;
pub const PEER_STALE_TIMEOUT_SECS: u64 = 90;
/// Size of each download chunk (32 MB).
pub const CHUNK_SIZE: u64 = 32 * 1024 * 1024;
@@ -15,7 +18,7 @@ pub const CHUNK_SIZE: u64 = 32 * 1024 * 1024;
pub const MAX_RETRY_COUNT: usize = 3;
/// Interval for local game directory monitoring (seconds).
pub const LOCAL_GAME_MONITOR_INTERVAL_SECS: u64 = 5;
pub const LOCAL_GAME_MONITOR_INTERVAL_SECS: u64 = 15;
/// TLS certificate for QUIC connections.
pub static CERT_PEM: &str = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../cert.pem"));