Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the max-connections option #475

Merged
merged 1 commit into from
Feb 8, 2020
Merged

Conversation

rs
Copy link
Contributor

@rs rs commented Feb 8, 2020

The connections option is misleading, as it let you think that no more
than the given number of connections will be established during the
attack, whereas it does only control the maximum amount of idle connection
in the pool, but keep the maximum number of connection unlimited.

The max-connection sets the maximum number of connections per target
host, which is what most people certainly expect the connections option
does.

Background

Checklist

  • Git commit messages conform to community standards.
  • Each Git commit represents meaningful milestones or atomic units of work.
  • Changed or added code is covered by appropriate tests.

The connections option is misleading, as it let you think that no more
than the given number of connections will be established during the
attack, whereas it does only control the maximum amount of idle connection
in the pool, but keep the maximum number of connection unlimited.

The max-connection sets the maximum number of connections per target
host, which is what most people certainly expect the connections option
does.
@rs rs requested review from tsenart and xla as code owners February 8, 2020 00:05
@@ -41,6 +41,9 @@ const (
// DefaultConnections is the default amount of max open idle connections per
// target host.
DefaultConnections = 10000
// DefaultMaxConnections is the default amount of connections per target
// host.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// host.
// host. Zero means no limit.

@tsenart tsenart merged commit 24b8392 into tsenart:master Feb 8, 2020
@rs rs deleted the max-connections branch February 8, 2020 16:25
@quiye quiye mentioned this pull request May 22, 2020
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants