/[Apache-SVN]/jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/DefaultHttpMethodRetryHandler.java
ViewVC logotype

Diff of /jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/DefaultHttpMethodRetryHandler.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/DefaultHttpMethodRetryHandler.java	2005/05/12 17:01:17	169848
+++ jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/DefaultHttpMethodRetryHandler.java	2005/05/12 17:05:07	169849
@@ -31,6 +31,7 @@ package org.apache.commons.httpclient;
 
 import java.io.IOException;
 import java.io.InterruptedIOException;
+import java.net.UnknownHostException;
 
 /**
  * The default {@link HttpMethodRetryHandler} used by {@link HttpMethod}s.
@@ -98,6 +99,10 @@ public class DefaultHttpMethodRetryHandl
             // Timeout
             return false;
         }
+        if (exception instanceof UnknownHostException) {
+            // Unknown host
+            return false;
+        }
         if (SSL_HANDSHAKE_EXCEPTION != null && SSL_HANDSHAKE_EXCEPTION.isInstance(exception)) {
             // SSL handshake exception
             return false;

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26