Handle http 408 from the server
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user