From 6019c4efd1e1adc7e1937cefe730a91b992f8f10 Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Sun, 20 Jun 2021 16:07:39 +0530 Subject: [PATCH] Increase ttfb timeout to 20 seconds. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 434fe10..9c045ca 100644 --- a/main.go +++ b/main.go @@ -28,7 +28,7 @@ var h2client = &http.Client{ KeepAlive: 30 * time.Second, }).Dial, TLSHandshakeTimeout: 10 * time.Second, - ResponseHeaderTimeout: 10 * time.Second, + ResponseHeaderTimeout: 20 * time.Second, ExpectContinueTimeout: 1 * time.Second, IdleConnTimeout: 30 * time.Second, ReadBufferSize: 16 * 1024,