Comparing version 1.2.14 to 1.2.15
@@ -34,2 +34,3 @@ #!/usr/bin/env node | ||
recover: {key: 'r', description: 'Do not exit on socket receive errors (default)'}, | ||
secureProtocol: {key: 's', args: 1, description: 'TLS/SSL secure protocol method to use'}, | ||
keepalive: {key: 'k', description: 'Use a keep-alive http agent'}, | ||
@@ -36,0 +37,0 @@ version: {key: 'V', description: 'Show version number and exit'}, |
@@ -129,2 +129,5 @@ 'use strict'; | ||
headers.addUserAgent(options.headers); | ||
if (params.secureProtocol) { | ||
options.secureProtocol = params.secureProtocol; | ||
} | ||
log.debug('Options: %j', options); | ||
@@ -131,0 +134,0 @@ } |
{ | ||
"name": "loadtest", | ||
"version": "1.2.14", | ||
"version": "1.2.15", | ||
"description": "Run load tests for your web application. Mostly ab-compatible interface, with an option to force requests per second. Includes an API for automated load testing.", | ||
@@ -14,3 +14,3 @@ "homepage": "https://github.com/alexfernandez/loadtest", | ||
"dependencies": { | ||
"prototypes": ">= 0.4.0", | ||
"prototypes": ">= 0.4.3", | ||
"agentkeepalive": "^2.0.3", | ||
@@ -17,0 +17,0 @@ "log": "1.4.*", |
@@ -223,2 +223,10 @@ [![Build Status](https://secure.travis-ci.org/alexfernandez/loadtest.png)](http://travis-ci.org/alexfernandez/loadtest) | ||
#### `-s` | ||
The TLS/SSL method to use. (e.g. TLSv1_method) | ||
Example: | ||
$ loadtest -n 1000 -s TLSv1_method https://www.example.com | ||
#### `-V` | ||
@@ -384,3 +392,3 @@ | ||
$ loadtest http://localhost:7357/ -t 20 -c 10 --rps 5000 | ||
$ loadtest http://localhost:7357/ -t 20 -c 10 --rps 500 | ||
... | ||
@@ -583,2 +591,25 @@ Requests: 0, requests per second: 0, mean latency: 0 ms | ||
#### `secureProtocol` | ||
The TLS/SSL method to use. (e.g. TLSv1_method) | ||
Example: | ||
```javascript | ||
var loadtest = require('loadtest'); | ||
var options = { | ||
url: 'https://www.example.com', | ||
maxRequests: 100, | ||
secureProtocol: 'TLSv1_method' | ||
}; | ||
loadtest.loadTest(options, function(error) { | ||
if (error) { | ||
return console.error('Got an error: %s', error); | ||
} | ||
console.log('Tests run successfully'); | ||
}); | ||
``` | ||
#### `statusCallback` | ||
@@ -585,0 +616,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66569
1741
712
Updatedprototypes@>= 0.4.3