fix: Timeout values

This commit is contained in:
Andras Bacsai
2022-04-12 18:21:10 +02:00
parent cc2ec55c4d
commit 03962663c2
2 changed files with 4 additions and 6 deletions

View File

@@ -1,11 +1,9 @@
// TODO: Make this functions generic
async function send({ async function send({
method, method,
path, path,
data = {}, data = {},
headers, headers,
timeout = 30000 timeout = 120000
}): Promise<Record<string, unknown>> { }): Promise<Record<string, unknown>> {
const controller = new AbortController(); const controller = new AbortController();
const id = setTimeout(() => controller.abort(), timeout); const id = setTimeout(() => controller.abort(), timeout);

View File

@@ -20,10 +20,10 @@ global
defaults defaults
mode http mode http
log global log global
timeout http-request 60s timeout http-request 120s
timeout connect 10s timeout connect 10s
timeout client 60s timeout client 120s
timeout server 60s timeout server 120s
userlist haproxy-dataplaneapi userlist haproxy-dataplaneapi
user admin insecure-password "\${HAPROXY_PASSWORD}" user admin insecure-password "\${HAPROXY_PASSWORD}"