From a1641c5bccacb585fcd3edca16d203ca143d50f5 Mon Sep 17 00:00:00 2001 From: Henry Dollman Date: Fri, 15 Nov 2024 16:29:36 -0500 Subject: [PATCH] change ssh related timeouts from 5s to 4s --- beszel/internal/hub/hub.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beszel/internal/hub/hub.go b/beszel/internal/hub/hub.go index e6fd02b..68dcd39 100644 --- a/beszel/internal/hub/hub.go +++ b/beszel/internal/hub/hub.go @@ -392,14 +392,14 @@ func (h *Hub) createSSHClientConfig() error { ssh.PublicKeys(signer), }, HostKeyCallback: ssh.InsecureIgnoreHostKey(), - Timeout: 5 * time.Second, + Timeout: 4 * time.Second, } return nil } // Fetches system stats from the agent and decodes the json data into the provided struct func (h *Hub) requestJsonFromAgent(client *ssh.Client, systemData *system.CombinedData) error { - session, err := newSessionWithTimeout(client, 5*time.Second) + session, err := newSessionWithTimeout(client, 4*time.Second) if err != nil { return fmt.Errorf("bad client") }