node-http-proxy
node-http-proxy copied to clipboard
Serious pitfall: If Upstream doesn't respond in time, but does respond again after a while, Proxy will never work because the 'socket hangs up' has destroyed httpagent....
Serious pitfall: If Upstream doesn't respond in time, but does respond again after a while, Proxy will never work because the 'socket hangs up' has destoryed httpagent....
Hey @introspection3 do you have additional insights or a test case? We're facing sporadic problems which might be related to that but haven't been able to nail it down for quite some time.
Have seen this regularly when proxying azure functions apps.
The general process:
- Start function app
- Start proxy
- Close function app
- Make request to function app that times out, with an ECONNREFUSED error
- Start function app
- Subsequent requests fail
- Close proxy
- Restart proxy
- Requests work again