-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 -keepalive flag to toggle persistent conns #91
Conversation
The flag is enabled by default. closes tsenart#89
@@ -38,6 +38,7 @@ func attackCmd() command { | |||
fs.IntVar(&opts.redirects, "redirects", vegeta.DefaultRedirects, "Number of redirects to follow") | |||
fs.Var(&opts.headers, "header", "Request header") | |||
fs.Var(&opts.laddr, "laddr", "Local IP address") | |||
fs.BoolVar(&opts.keepalive, "keepalive", true, "Use Keep-Alive for persistent conns") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
conns -> connections
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
👍 |
Add -keepalive flag to toggle persistent conns
@tsenart can you please explain how to disable keepalive?
I want vegeta to send 1 request to my server and close the connection immediately. Thank you. |
Yes that's correct, you should pass |
The flag is enabled by default.
closes #89