-
-
Notifications
You must be signed in to change notification settings - Fork 334
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
supporting https #30
supporting https #30
Conversation
@@ -85,7 +87,12 @@ function Client (opts) { | |||
inherits(Client, EE) | |||
|
|||
Client.prototype._connect = function () { | |||
this.conn = net.connect(this.opts.port, this.opts.hostname) | |||
if (this.secure) { | |||
this.conn = tls.connect(this.opts.port, this.opts.hostname, { rejectUnauthorized: false }) |
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.
Should we allow users to specify rejectUnauthorized?
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.
relevant, CTRL-F rejectUnauthorized: https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
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.
I think for a load tester it's good to not validate certificates.
Can you please check the performance of our ssl impl with the one of wrk? |
@@ -4,8 +4,8 @@ | |||
|
|||
![demo](https://raw.githubusercontent.com/mcollina/autocannon/master/demo.gif) | |||
|
|||
An HTTP benchmarking tool written in node, greatly inspired by | |||
[wrk][wrk] and [wrk2][wrk2], with support to HTTP pipelining. | |||
A HTTP benchmarking tool written in node, greatly inspired by [wrk][wrk] |
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.
we should probably say that this is a HTTP/1.1
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.
done
|
Can you please check what's going on with the high latency? |
fixes #28