conlimiter

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package conlimiter provides a simple connection limiter for incoming TCP connections

Package conlimiter provides a simple connection limiter for incoming TCP connections.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConLimiter

type ConLimiter struct {
	Max int32
	// contains filtered or unexported fields
}

ConLimiter limits the number of outstanding TCP connections coming into a HTTP server _before_ TLS is attempted. This is a defense against a DOS attack (intentional or otherwise).

func (*ConLimiter) Limit

func (l *ConLimiter) Limit(s *http.Server)

Limit is the factor for the ConLimiter package

Jump to

Keyboard shortcuts

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