So I am still stuck on this issue. I have added the following to the top of my squid.conf file:
forward_timeout 10.00 second
And it does work. After 11-12 seconds, squid stops trying to forward the request. The problem is, it simply terminates the connection without displaying an error page.
I would like it to show a custom error page or for starters, at least something rather than the browser saying "Firefox can't establish a connection to the server" or "No data received" - Chrome.
I am testing this by shutting down the peer's IIS web server so that squid cannot connect. If I remove the cannot_forward parameter, I I get the 110 second wait and then the ERR_CANNOT_FORWARD page as expected. I would like this same behavior to occur but after 10 seconds rather than 110.