slowloris

package
v0.0.0-...-b89fbfb Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package slowloris [inspired by https://github.com/valyala/goloris]

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(stopChan chan bool, logger *zap.Logger, config *Config) error

Start starts a slowloris job with specific configuration

Types

type Config

type Config struct {
	ContentLength    int           // The maximum length of fake POST body in bytes. Adjust to nginx's client_max_body_size
	DialWorkersCount int           // The number of workers simultaneously busy with opening new TCP connections
	RampUpInterval   time.Duration // Interval between new connections' acquisitions for a single dial worker (see DialWorkersCount)
	SleepInterval    time.Duration // Sleep interval between subsequent packets sending. Adjust to nginx's client_body_timeout
	Duration         time.Duration // Duration
	Path             string        // Target Path. Http POST must be allowed for this Path
	HostHeader       string        // Host header value in case it is different than the hostname in Path
	ProxyURLs        string
	Timeout          time.Duration
}

Config holds all the configuration values for slowloris

type SlowLoris

type SlowLoris struct {
	Config *Config
}

SlowLoris is a main logic struct for the package

Jump to

Keyboard shortcuts

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