Skip to content

Commit

Permalink
[doc] Document setMaxSockets. Fixes #81
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Sep 10, 2011
1 parent 13eaec5 commit d6c5436
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -357,6 +357,13 @@ server.on('upgrade', function(req, socket, head) {
});
```

### Configuring your Socket limits

By default, `node-http-proxy` will set a 100 socket limit for all `host:port` proxy targets. If you wish to change this you can two it in two ways:

1. By passing the `maxSockets` option to `httpProxy.createServer()`
2. By calling `httpProxy.setMaxSockets(n)`, where `n` is the number of sockets you with to use.

## Using node-http-proxy from the command line
When you install this package with npm, a node-http-proxy binary will become available to you. Using this binary is easy with some simple options:

Expand Down

0 comments on commit d6c5436

Please sign in to comment.