mannersagain

package module
v1.0.0-...-dea8fca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2014 License: BSD-3-Clause Imports: 8 Imported by: 3

README

mannersagain

Package mannersagain combines manners and goagain to provide graceful hot restarting of net/http servers.

To use it, just replace your call to http.ListenAndServe with a call to mannersagain.ListenAndServe. When you send SIGUSR2 to the process, it will pass the listener to a new process and exit gracefully. When you send SIGQUIT to the process it will exit gracefully.

mannersagain supports both of the Single and Double strategies that goagain provides, set goagain.Strategy before calling ListenAndServe to change the default.

Documentation

Overview

Package mannersagain combines manners and goagain to provide graceful hot restarting of net/http servers.

Index

Constants

This section is empty.

Variables

View Source
var ErrClosed = errors.New("mannersagain: listener has been gracefully closed")

Functions

func ListenAndServe

func ListenAndServe(addr string, handler http.Handler) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL