From 03962663c2f7fbe227d06bbbd1684f5e1fdff639 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 12 Apr 2022 18:21:10 +0200 Subject: [PATCH] fix: Timeout values --- src/lib/api.ts | 4 +--- src/lib/haproxy/configuration.ts | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/lib/api.ts b/src/lib/api.ts index 6d226ef15..ab145a2f7 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -1,11 +1,9 @@ -// TODO: Make this functions generic - async function send({ method, path, data = {}, headers, - timeout = 30000 + timeout = 120000 }): Promise> { const controller = new AbortController(); const id = setTimeout(() => controller.abort(), timeout); diff --git a/src/lib/haproxy/configuration.ts b/src/lib/haproxy/configuration.ts index 8a967befd..f0bd2bb08 100644 --- a/src/lib/haproxy/configuration.ts +++ b/src/lib/haproxy/configuration.ts @@ -20,10 +20,10 @@ global defaults mode http log global - timeout http-request 60s + timeout http-request 120s timeout connect 10s - timeout client 60s - timeout server 60s + timeout client 120s + timeout server 120s userlist haproxy-dataplaneapi user admin insecure-password "\${HAPROXY_PASSWORD}"