From 01bbcbef600b1d16b845eef9da723f0f7fa7532a Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Tue, 19 Aug 2014 22:08:13 +0100 Subject: [PATCH] Update documentation for Shutdown. This completes issue #101. Fixes #101 --- server.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server.go b/server.go index b9257473..cc3949a8 100644 --- a/server.go +++ b/server.go @@ -300,8 +300,9 @@ func (srv *Server) ActivateAndServe() error { return &Error{err: "bad listeners"} } -// Shutdown shuts down a server. After a call to Shutdown, ListenAndServe and -// ActivateAndServe will return. +// Shutdown gracefully shuts down a server. After a call to Shutdown, ListenAndServe and +// ActivateAndServe will return. All in progress queries are completed before the server +// is taken down. func (srv *Server) Shutdown() { c := new(Client) c.Net = srv.Net