fix(rustproxy-http): keep connection idle tracking alive during streaming and tune HTTP/2 connection lifetimes

This commit is contained in:
2026-03-15 16:24:41 +00:00
parent 386859a2bd
commit a9dbccfaff
5 changed files with 94 additions and 32 deletions

View File

@@ -20,7 +20,7 @@ const IDLE_TIMEOUT: Duration = Duration::from_secs(90);
const EVICTION_INTERVAL: Duration = Duration::from_secs(30);
/// Maximum age for pooled HTTP/2 connections before proactive eviction.
/// Prevents staleness from backends that close idle connections (e.g. nginx GOAWAY).
const MAX_H2_AGE: Duration = Duration::from_secs(120);
const MAX_H2_AGE: Duration = Duration::from_secs(300);
/// Identifies a unique backend endpoint.
#[derive(Clone, Debug, Hash, Eq, PartialEq)]