diff options
author | Qiuxuan Zhu <ilsh1022@gmail.com> | 2017-06-23 12:31:48 +0800 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2017-06-23 05:28:53 +0000 |
commit | 143bdc27932451200f3c8f4b304fe92ee8bba9be (patch) | |
tree | 22b63f18b0050811594f6f6ac75df6c5d8eae62a | |
parent | a6df299e89f6ba56d71571f694fb7327294ae72e (diff) | |
download | go-143bdc27932451200f3c8f4b304fe92ee8bba9be.tar.gz go-143bdc27932451200f3c8f4b304fe92ee8bba9be.zip |
net/http: Update server idleTimeout documentation
Fixes #20383
Change-Id: I11234393c3beb669f87976a4f0b424bec7372b82
Reviewed-on: https://go-review.googlesource.com/46434
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-rw-r--r-- | src/net/http/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/http/server.go b/src/net/http/server.go index c1b98daabf..5447e5f89a 100644 --- a/src/net/http/server.go +++ b/src/net/http/server.go @@ -2360,7 +2360,7 @@ type Server struct { // IdleTimeout is the maximum amount of time to wait for the // next request when keep-alives are enabled. If IdleTimeout // is zero, the value of ReadTimeout is used. If both are - // zero, there is no timeout. + // zero, ReadHeaderTimeout is used. IdleTimeout time.Duration // MaxHeaderBytes controls the maximum number of bytes the |