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
Click to show internal directories.
Click to hide internal directories.