mirror of
https://github.com/miekg/dns.git
synced 2025-08-09 02:56:58 +02:00
Update documentation for Shutdown.
This completes issue #101. Fixes #101
This commit is contained in:
parent
eed2b9aeec
commit
01bbcbef60
@ -300,8 +300,9 @@ func (srv *Server) ActivateAndServe() error {
|
|||||||
return &Error{err: "bad listeners"}
|
return &Error{err: "bad listeners"}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Shutdown shuts down a server. After a call to Shutdown, ListenAndServe and
|
// Shutdown gracefully shuts down a server. After a call to Shutdown, ListenAndServe and
|
||||||
// ActivateAndServe will return.
|
// ActivateAndServe will return. All in progress queries are completed before the server
|
||||||
|
// is taken down.
|
||||||
func (srv *Server) Shutdown() {
|
func (srv *Server) Shutdown() {
|
||||||
c := new(Client)
|
c := new(Client)
|
||||||
c.Net = srv.Net
|
c.Net = srv.Net
|
||||||
|
Loading…
Reference in New Issue
Block a user