Comparing version 0.0.4 to 0.0.5
# Changelog | ||
- 0.0.5 (2017/06/12) | ||
- Fix socket leak. | ||
- 0.0.4 (2016/01/23) | ||
@@ -4,0 +7,0 @@ - supported Node v0.12 or later. |
@@ -150,2 +150,3 @@ 'use strict'; | ||
res.statusCode); | ||
socket.destroy(); | ||
var error = new Error('tunneling socket could not be established, ' + | ||
@@ -152,0 +153,0 @@ 'statusCode=' + res.statusCode); |
{ | ||
"name": "tunnel", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Node HTTP/HTTPS Agents for tunneling proxies", | ||
@@ -25,3 +25,3 @@ "keywords": [ | ||
"scripts": { | ||
"test": "./node_modules/mocha/bin/mocha" | ||
"test": "mocha" | ||
}, | ||
@@ -28,0 +28,0 @@ "devDependencies": { |
# node-tunnel - HTTP/HTTPS Agents for tunneling proxies | ||
[![Build Status](https://img.shields.io/travis/koichik/node-tunnel.svg?style=flat)](https://travis-ci.org/koichik/node-tunnel) | ||
[![Dependency Status](http://img.shields.io/david/koichik/node-tunnel.svg?style=flat)](https://david-dm.org/koichik/node-tunnel#info=dependencies) | ||
[![DevDependency Status](http://img.shields.io/david/dev/koichik/node-tunnel.svg?style=flat)](https://david-dm.org/koichik/node-tunnel#info=devDependencies) | ||
## Example | ||
@@ -32,3 +36,3 @@ | ||
var tunnelingAgent = tunnel.httpOverHttp({ | ||
maxSockets: poolSize, // Defaults to 5 | ||
maxSockets: poolSize, // Defaults to http.Agent.defaultMaxSockets | ||
@@ -61,3 +65,3 @@ proxy: { // Proxy settings | ||
var tunnelingAgent = tunnel.httpsOverHttp({ | ||
maxSockets: poolSize, // Defaults to 5 | ||
maxSockets: poolSize, // Defaults to http.Agent.defaultMaxSockets | ||
@@ -97,3 +101,3 @@ // CA for origin server if necessary | ||
var tunnelingAgent = tunnel.httpOverHttps({ | ||
maxSockets: poolSize, // Defaults to 5 | ||
maxSockets: poolSize, // Defaults to http.Agent.defaultMaxSockets | ||
@@ -136,3 +140,3 @@ proxy: { // Proxy settings | ||
var tunnelingAgent = tunnel.httpsOverHttps({ | ||
maxSockets: poolSize, // Defaults to 5 | ||
maxSockets: poolSize, // Defaults to http.Agent.defaultMaxSockets | ||
@@ -180,2 +184,4 @@ // CA for origin server if necessary | ||
* [Aleksis Brezas (abresas)](https://github.com/abresas) | ||
* [Jackson Tian (JacksonTian)](https://github.com/JacksonTian) | ||
* [Dmitry Sorin (1999)](https://github.com/1999) | ||
@@ -182,0 +188,0 @@ ## License |
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
80413
76
1037
186
21