Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for FailedPlan (0.06 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/FailedPlan.kt

     *
     * Planning failures are not necessarily fatal. For example, even if we can't DNS lookup the first
     * proxy in a list, looking up a subsequent one may succeed.
     */
    internal class FailedPlan(
      e: Throwable,
    ) : RoutePlanner.Plan {
      val result = RoutePlanner.ConnectResult(plan = this, throwable = e)
    
      override val isReady = false
    
      override fun connectTcp() = result
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt

              } catch (e: Throwable) {
                FailedPlan(e)
              }
            }
    
            else -> {
              return null
            } // Nothing further to try.
          }
    
        // Already connected. Return it immediately.
        if (plan.isReady) return ConnectResult(plan)
    
        // Already failed? Return it immediately.
        if (plan is FailedPlan) return plan.result
    
        // Connect TCP asynchronously.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 5.8K bytes
    - Click Count (0)
Back to Top