Even if you're running on bare metal I find it hard to believe you don't have a layer with short timeouts between your front and backend.