I am migrating an application which uses a ProxyServlet from Jetty 6 to Jetty 8. I have observed an change in behaviour.
Scenario: The proxy tries to forward to a port that is closed on the destination host.
Jetty 6: The proxy returns immediately with status 500.
Jetty 8: The proxy returns after a long time with status 504.
I would prefer to get the instant return without any timeout, since if the port is closed it is very unlikely there will be a reply at all, at least in my case. Is there any way to get this behaviour in Jetty 8?