Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Update README to fix maxSocket's default value
Browse files Browse the repository at this point in the history
  • Loading branch information
koichik committed Jun 12, 2017
1 parent 9ec91a0 commit 01e6e37
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var req = https.request({

```javascript
var tunnelingAgent = tunnel.httpOverHttp({
maxSockets: poolSize, // Defaults to 5
maxSockets: poolSize, // Defaults to http.Agent.defaultMaxSockets

proxy: { // Proxy settings
host: proxyHost, // Defaults to 'localhost'
Expand Down Expand Up @@ -61,7 +61,7 @@ var req = http.request({

```javascript
var tunnelingAgent = tunnel.httpsOverHttp({
maxSockets: poolSize, // Defaults to 5
maxSockets: poolSize, // Defaults to http.Agent.defaultMaxSockets

// CA for origin server if necessary
ca: [ fs.readFileSync('origin-server-ca.pem')],
Expand Down Expand Up @@ -96,7 +96,7 @@ var req = https.request({

```javascript
var tunnelingAgent = tunnel.httpOverHttps({
maxSockets: poolSize, // Defaults to 5
maxSockets: poolSize, // Defaults to http.Agent.defaultMaxSockets

proxy: { // Proxy settings
host: proxyHost, // Defaults to 'localhost'
Expand Down Expand Up @@ -134,7 +134,7 @@ var req = http.request({

```javascript
var tunnelingAgent = tunnel.httpsOverHttps({
maxSockets: poolSize, // Defaults to 5
maxSockets: poolSize, // Defaults to http.Agent.defaultMaxSockets

// CA for origin server if necessary
ca: [ fs.readFileSync('origin-server-ca.pem')],
Expand Down

0 comments on commit 01e6e37

Please sign in to comment.