Skip to content

Commit

Permalink
Add proxy-timeout option to documentation (#1075)
Browse files Browse the repository at this point in the history
http-proxy provides a [proxyTimeout option](https://github.com/nodejitsu/node-http-proxy/blob/master/lib/http-proxy/passes/web-incoming.js#L122) that allows us to set a timeout on the outgoing socket connection to the target. This timeout is very effective when the upstream target does not respond within an expected time.

I had wasted a few hours searching for this option. Documenting this option can save others a significant amount of time.
  • Loading branch information
ashishdahiya authored and jcrugzz committed Oct 4, 2016
1 parent 912cd3a commit d0a1588
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ proxyServer.listen(8015);
}
```
* **headers**: object with extra headers to be added to target requests.
* **proxyTimeout**: timeout (in millis) when proxy receives no response from target

**NOTE:**
`options.ws` and `options.ssl` are optional.
Expand Down

0 comments on commit d0a1588

Please sign in to comment.