commit | 3dbecd592b8bf084770c8d6f38bd8094f74b8258 | [log] [tgz] |
---|---|---|
author | David Symonds <dsymonds@golang.org> | Tue Dec 13 10:42:56 2011 +1100 |
committer | David Symonds <dsymonds@golang.org> | Tue Dec 13 10:42:56 2011 +1100 |
tree | 54071ecd366f674fc3ecdbe8579d400a059414d9 | |
parent | fc7b9fc26990e3a480f816e7c34d981488340c0c [diff] [blame] |
various: a grab-bag of time.Duration cleanups. R=adg, r, rsc CC=golang-dev https://golang.org/cl/5475069
diff --git a/src/pkg/net/http/doc.go b/src/pkg/net/http/doc.go index 9c47ac7..2dbcf8d 100644 --- a/src/pkg/net/http/doc.go +++ b/src/pkg/net/http/doc.go
@@ -70,8 +70,8 @@ s := &http.Server{ Addr: ":8080", Handler: myHandler, - ReadTimeout: 10e9, - WriteTimeout: 10e9, + ReadTimeout: 10 * time.Second, + WriteTimeout: 10 * time.Second, MaxHeaderBytes: 1 << 20, } log.Fatal(s.ListenAndServe())