No Event Fired on Timeout
Hi,
I have set up a reverse proxy with a timeout set up, but when the timeout occurs, no even is fired and nothing happens in the error event handler. If I use CURL to connect to the proxy, after the timeout period, the server just sends an empty response.
What is the correct way of setting up and handling a proxy timeout? I require a low (5 second) timeout on the proxy but want to be able to handle the timeout gracefully in order to both log the request and present the end user with an error page rather than a standard browser 'no response' page.
Thanks
Just had the same issue, I switched from using "timeout" to "proxyTimeout" in my option object, and it works just fine. The error is emitted and you get an error - socket hung up