IJPL-157250 IdeProxySelector: rethrow CancellationException

GitOrigin-RevId: 83d4daad1a71f1d8834aeaa71245e6435ec3e803
This commit is contained in:
Vadim Salavatov
2024-06-25 19:02:58 +00:00
committed by intellij-monorepo-bot
parent 4c8fee0c2f
commit 3806438d8a
@@ -13,6 +13,7 @@ import java.net.SocketAddress
import java.net.URI
import java.net.URL
import java.util.Collections
import java.util.concurrent.CancellationException
import java.util.concurrent.atomic.AtomicReference
import java.util.function.Predicate
@@ -82,7 +83,10 @@ class IdeProxySelector(
return NO_PROXY_LIST
}
}
catch (e: Throwable) {
catch (e: CancellationException) {
throw e
}
catch (e: Exception) {
logger.error("$uri: no proxy, failed to select using PAC/autodetect", e)
return NO_PROXY_LIST
}