Skip to content

Commit d0a1588

Browse files
ashishdahiyajcrugzz
authored andcommitted
Add proxy-timeout option to documentation (#1075)
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.
1 parent 912cd3a commit d0a1588

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ proxyServer.listen(8015);
350350
}
351351
```
352352
* **headers**: object with extra headers to be added to target requests.
353+
* **proxyTimeout**: timeout (in millis) when proxy receives no response from target
353354
354355
**NOTE:**
355356
`options.ws` and `options.ssl` are optional.

0 commit comments

Comments
 (0)