From 98edbaa445a59d6ac8c874784e32ba4773fce14a Mon Sep 17 00:00:00 2001 From: ashishdahiya Date: Fri, 30 Sep 2016 20:31:35 -0700 Subject: [PATCH] Add proxy-timeout option to documentation 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. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3c0a26fab..ae8ed8110 100644 --- a/README.md +++ b/README.md @@ -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.