Skip to content

armgit / hey

Public Imported from GitHub
0

HTTP load generator, ApacheBench (ab) replacement

Go

Always allow insecure connections; this is a tool used during development.

Burcu Doganbc64737aae8e
diff --git a/boom.go b/boom.go
index da05d20..c674f0e 100644
--- a/boom.go
+++ b/boom.go
@@ -48,7 +48,6 @@ var (
t = flag.Int("t", 0, "")
cpus = flag.Int("cpus", runtime.GOMAXPROCS(-1), "")
- insecure = flag.Bool("allow-insecure", false, "")
disableCompression = flag.Bool("disable-compression", false, "")
disableKeepAlives = flag.Bool("disable-keepalive", false, "")
proxyAddr = flag.String("x", "", "")
@@ -74,7 +73,6 @@ Options:
-a Basic authentication, username:password.
-x HTTP Proxy address as host:port.
- -allow-insecure Allow bad/expired TLS/SSL certificates.
-disable-compression Disable compression.
-disable-keepalive Disable keep-alive, prevents re-use of TCP
connections between different HTTP requests.
@@ -162,7 +160,6 @@ func main() {
C: conc,
Qps: q,
Timeout: *t,
- AllowInsecure: *insecure,
DisableCompression: *disableCompression,
DisableKeepAlives: *disableKeepAlives,
ProxyAddr: proxyURL,
diff --git a/boomer/boomer.go b/boomer/boomer.go
index 498b225..c5972d4 100644
--- a/boomer/boomer.go
+++ b/boomer/boomer.go
@@ -53,9 +53,6 @@ type Boomer struct {
// Qps is the rate limit.
Qps int
- // AllowInsecure is an option to allow insecure TLS/SSL certificates.
- AllowInsecure bool
-
// DisableCompression is an option to disable compression in response
DisableCompression bool
@@ -122,7 +119,7 @@ func (b *Boomer) runWorker(n int) {
tr := &http.Transport{
TLSClientConfig: &tls.Config{
- InsecureSkipVerify: b.AllowInsecure,
+ InsecureSkipVerify: true,
},
DisableCompression: b.DisableCompression,
DisableKeepAlives: b.DisableKeepAlives,