]> Cypherpunks repositories - gostls13.git/commit
net/http: add optional Server.ConnState callback
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 28 Feb 2014 02:29:00 +0000 (18:29 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 28 Feb 2014 02:29:00 +0000 (18:29 -0800)
commit67b8bf3e32ec0bcc79453caeea9595a3ca036929
tree69742bc0761b6df7e42b8e1e1a1d7ba3f6ceca02
parentd9c6ae6ae8359429a249b074b07baf5cbc894d7f
net/http: add optional Server.ConnState callback

Update #4674

This allows for all sorts of graceful shutdown policies,
without picking a policy (e.g. lameduck period) and without
adding lots of locking to the server core. That policy and
locking can be implemented outside of net/http now.

LGTM=adg
R=golang-codereviews, josharian, r, adg, dvyukov
CC=golang-codereviews
https://golang.org/cl/69260044
src/pkg/net/http/serve_test.go
src/pkg/net/http/server.go