From dcf5da917cb7b3fc7138e4a5191a8f92da6483ce Mon Sep 17 00:00:00 2001 From: bddjr Date: Wed, 4 Dec 2024 14:10:09 +0800 Subject: [PATCH] test ReadHeaderTimeout: time.Minute --- test/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/main.go b/test/main.go index ee134cf..563ded0 100644 --- a/test/main.go +++ b/test/main.go @@ -21,8 +21,7 @@ func main() { srv = hlfhr.New(&http.Server{ Addr: ":5678", Handler: http.HandlerFunc(httpResponseHandle), - ReadHeaderTimeout: 5 * time.Second, - IdleTimeout: 5 * time.Second, + ReadHeaderTimeout: time.Minute, }) // Then just use it like http.Server .