Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
node-http-proxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
node-http-proxy
Commits
d6c54369
Commit
d6c54369
authored
Sep 10, 2011
by
indexzero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[doc] Document `setMaxSockets`. Fixes #81
parent
13eaec55
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
README.md
README.md
+7
-0
No files found.
README.md
View file @
d6c54369
...
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment