okhttp / okhttp3 / EventListener / connectFailed

connectFailed

open fun connectFailed(call: Call, inetSocketAddress: InetSocketAddress, proxy: Proxy, protocol: Protocol?, ioe: IOException): Unit

Invoked when a connection attempt fails. This failure is not terminal if further routes are available and failure recovery is enabled.

If the call uses HTTPS, this will be invoked after secureConnectEnd, otherwise it will invoked after connectStart.