conlimiter

package
v1.11.9 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 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.

Deprecated: conlimiter is no longer planned to be used by future WebPA/XMiDT services.

This package is frozen and no new functionality will be added.

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