Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for shouldPostpone (0.07 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteDatabase.kt

      @Synchronized fun connected(route: Route) {
        _failedRoutes.remove(route)
      }
    
      /** Returns true if [route] has failed recently and should be avoided. */
      @Synchronized fun shouldPostpone(route: Route): Boolean = route in _failedRoutes
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteSelector.kt

          val proxy = nextProxy()
          for (inetSocketAddress in inetSocketAddresses) {
            val route = Route(address, proxy, inetSocketAddress)
            if (routeDatabase.shouldPostpone(route)) {
              postponedRoutes += route
            } else {
              routes += route
            }
          }
    
          if (routes.isNotEmpty()) {
            break
          }
        }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Mar 06 17:33:38 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top