Handle http 408 from the server

This commit is contained in:
Laurent Clouet
2017-11-15 14:45:46 +01:00
parent 8771d07a99
commit a76131647f

View File

@@ -455,7 +455,7 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
} }
else { else {
System.out.println("Server::requestJob url " + url_contents + " r " + r + " contentType " + contentType); System.out.println("Server::requestJob url " + url_contents + " r " + r + " contentType " + contentType);
if (r == HttpURLConnection.HTTP_UNAVAILABLE) { if (r == HttpURLConnection.HTTP_UNAVAILABLE || r == HttpURLConnection. HTTP_CLIENT_TIMEOUT) {
// most likely varnish is up but apache down // most likely varnish is up but apache down
throw new FermeServerDown(); throw new FermeServerDown();
} }