Package limitnet provides some network primitives, most notably throttled listener, needed by my nserv package.
ThrottledListener implements
- throttling the number of active connections (preventing depletion of server's resources and DOS attacks) and
- graceful shutdown through the Wait method.
Package features, version v1:
- throttled listener with graceful shutdown
version v0 additionally boasts:
- helper functions for writing a server with zero-downtime restarts (by passing an open fd to a child process, see nserv package for examples)
For up-to-date changelog and features list see README.
import "gopkg.in/kornel661/limitnet.v0"
or
go get gopkg.in/kornel661/limitnet.v0
Replace v0 by the version you need, see package import site and gopkg.in for import path convention.
- Bleeding-edge development version (github.com/kornel661/limitnet)
- Development version (v0)
- Initial version with stable API (v1)
- 2014.11.11 (version v0): fixed some tests
- 2014.08.27 (version v0): zero-downtime restarts - alpha quality code
- 2014.08.18 (version v1): Created version v1 - its API should be stabe, though it isn't well-tested yet.
- 2014.08.16 (version v0): Testing & bug hunting season opened.