From c281ee3b61e8ab53ff118866d72618ae8cce582b Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Mon, 13 Mar 2017 12:54:22 -0400 Subject: Updating server dependancies. Also adding github.com/jaytaylor/html2text and gopkg.in/gomail.v2 (#5748) --- vendor/github.com/tylerb/graceful/README.md | 5 +++++ vendor/github.com/tylerb/graceful/graceful.go | 1 + 2 files changed, 6 insertions(+) (limited to 'vendor/github.com/tylerb') diff --git a/vendor/github.com/tylerb/graceful/README.md b/vendor/github.com/tylerb/graceful/README.md index 328c3acf8..c641b6e78 100644 --- a/vendor/github.com/tylerb/graceful/README.md +++ b/vendor/github.com/tylerb/graceful/README.md @@ -3,6 +3,11 @@ graceful [![GoDoc](https://godoc.org/github.com/tylerb/graceful?status.png)](htt Graceful is a Go 1.3+ package enabling graceful shutdown of http.Handler servers. +## Using Go 1.8? + +If you are using Go 1.8, you may not need to use this library! Consider using `http.Server`'s built-in [Shutdown()](https://golang.org/pkg/net/http/#Server.Shutdown) +method for graceful shutdowns. + ## Installation To install, simply execute: diff --git a/vendor/github.com/tylerb/graceful/graceful.go b/vendor/github.com/tylerb/graceful/graceful.go index d6a9ca068..ebf0aeb7d 100644 --- a/vendor/github.com/tylerb/graceful/graceful.go +++ b/vendor/github.com/tylerb/graceful/graceful.go @@ -366,6 +366,7 @@ func (srv *Server) manageConnections(add, idle, active, remove chan net.Conn, sh select { case conn := <-add: srv.connections[conn] = struct{}{} + srv.idleConnections[conn] = struct{}{} // Newly-added connections are considered idle until they become active. case conn := <-idle: srv.idleConnections[conn] = struct{}{} case conn := <-active: -- cgit v1.2.3-1-g7c22