Skip to content

Commit

Permalink
Add HttpHostConnectException for proxy handling
Browse files Browse the repository at this point in the history
  • Loading branch information
yma96 committed Jan 7, 2025
1 parent 4aa719f commit a2e8df5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpUriRequest;
import org.apache.http.conn.ConnectTimeoutException;
import org.apache.http.conn.HttpHostConnectException;
import org.apache.http.impl.client.CloseableHttpClient;
import org.commonjava.maven.galley.GalleyException;
import org.commonjava.maven.galley.TransferException;
Expand Down Expand Up @@ -132,7 +133,8 @@ else if ( !successStatuses.contains( sc ) )
return false;
}
}
catch ( final NoHttpResponseException | ConnectTimeoutException | SocketTimeoutException e )
catch ( final NoHttpResponseException | ConnectTimeoutException | SocketTimeoutException |
HttpHostConnectException e )
{
// For those are not in the iad2 tenant egress rules, will throw timeout so use the configured proxy to retry
if ( tries > 0 )
Expand Down

0 comments on commit a2e8df5

Please sign in to comment.