Skip to content

kornel661/limitnet

Repository files navigation

limitnet

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.

Usage

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.

Versions

  • Bleeding-edge development version (github.com/kornel661/limitnet) GoDoc GoWalker
  • Development version (v0) GoDoc GoWalker GoCover
  • Initial version with stable API (v1) GoDoc GoWalker GoCover

Changelog

  • 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.

About

Package limitnet provides some network primitives, most notably throttled listener, needed by my nserv package.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages