Commit 143bdc27 authored by Qiuxuan Zhu's avatar Qiuxuan Zhu Committed by Brad Fitzpatrick

net/http: Update server idleTimeout documentation

Fixes #20383

Change-Id: I11234393c3beb669f87976a4f0b424bec7372b82
Reviewed-on: https://go-review.googlesource.com/46434Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent a6df299e
...@@ -2360,7 +2360,7 @@ type Server struct { ...@@ -2360,7 +2360,7 @@ type Server struct {
// IdleTimeout is the maximum amount of time to wait for the // IdleTimeout is the maximum amount of time to wait for the
// next request when keep-alives are enabled. If IdleTimeout // next request when keep-alives are enabled. If IdleTimeout
// is zero, the value of ReadTimeout is used. If both are // is zero, the value of ReadTimeout is used. If both are
// zero, there is no timeout. // zero, ReadHeaderTimeout is used.
IdleTimeout time.Duration IdleTimeout time.Duration
// MaxHeaderBytes controls the maximum number of bytes the // MaxHeaderBytes controls the maximum number of bytes the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment