From cacbfad765ae0171a395c02d1c27071511aa5704 Mon Sep 17 00:00:00 2001 From: Fenny <25108519+Fenny@users.noreply.github.com> Date: Sun, 21 Jun 2020 18:00:57 +0200 Subject: [PATCH] Update timeout comments --- app.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.go b/app.go index 25c309c04d..ae9c78900b 100644 --- a/app.go +++ b/app.go @@ -133,14 +133,18 @@ type Settings struct { Views Views // The amount of time allowed to read the full request including body. + // It is reset after the request handler has returned. + // The connection's read deadline is reset when the connection opens. // Default: unlimited ReadTimeout time.Duration // The maximum duration before timing out writes of the response. + // It is reset after the request handler has returned. // Default: unlimited WriteTimeout time.Duration // The maximum amount of time to wait for the next request when keep-alive is enabled. + // If IdleTimeout is zero, the value of ReadTimeout is used. // Default: unlimited IdleTimeout time.Duration