This version continues the recent trend of changes to package graceful:
- It has learned graceful.ShutdownNow, which will close all connections
managed by the package (including those that are in the process of
servicing requests)
- It has learned two new behaviors that invoke the ShutdownNow
semantics:
- graceful.DoubleKickWindow, which, when enabled, causes an immediate
shutdown when two signals are received in a short enough time span
- graceful.Timeout, which, when enabled, causes an immediate shutdown
on all connections which have not responded to a graceful shutdown
within an allotted timeout.
- graceful.Middleware was removed from the public API. This middleware
has been a no-op since Go 1.2, but is a breaking change nevertheless.
- graceful.ListenAndServeTLS (and the equivalent function on
graceful.Server) now disable SSLv3 by default, in order to address the
POODLE vulnerability.
There was one additional change: middleware.SubRouter now exposes a
mechanism by which regular expression routes can bind a "tail" path.