diff options
| author | Carl Jackson <carl@stripe.com> | 2015-07-31 23:25:48 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2015-08-02 08:34:04 +0000 |
| commit | ec4d06e47010ef5a7a69080046530997169e7666 (patch) | |
| tree | 585f724c49097a128674a24487bea92da171180f /src/net/http/server.go | |
| parent | 02d74485e41feadd2dd98edce3416eda57168772 (diff) | |
| download | go-ec4d06e47010ef5a7a69080046530997169e7666.tar.xz | |
net/http: fix SetKeepAlivesEnabled receiver name
This makes the receiver name consistent with the rest of the methods on
type Server.
Change-Id: Ic2a007d3b5eb50bd87030e15405e9856109cf590
Reviewed-on: https://go-review.googlesource.com/13035
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/net/http/server.go')
| -rw-r--r-- | src/net/http/server.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/http/server.go b/src/net/http/server.go index 8c204fb648..d12f696eaf 100644 --- a/src/net/http/server.go +++ b/src/net/http/server.go @@ -1884,11 +1884,11 @@ func (s *Server) doKeepAlives() bool { // By default, keep-alives are always enabled. Only very // resource-constrained environments or servers in the process of // shutting down should disable them. -func (s *Server) SetKeepAlivesEnabled(v bool) { +func (srv *Server) SetKeepAlivesEnabled(v bool) { if v { - atomic.StoreInt32(&s.disableKeepAlives, 0) + atomic.StoreInt32(&srv.disableKeepAlives, 0) } else { - atomic.StoreInt32(&s.disableKeepAlives, 1) + atomic.StoreInt32(&srv.disableKeepAlives, 1) } } |
