Home
last modified time | relevance | path

Searched refs:routeDatabase (Results 1 – 3 of 3) sorted by relevance

/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DRouteSelector.java59 private final RouteDatabase routeDatabase; field in RouteSelector
82 HostResolver hostResolver, RouteDatabase routeDatabase) { in RouteSelector() argument
88 this.routeDatabase = routeDatabase; in RouteSelector()
132 if (routeDatabase.shouldPostpone(route)) { in next()
156 routeDatabase.failed(failedRoute); in connectFailed()
166 routeDatabase.failed(routeToSuppress); in connectFailed()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DRouteSelectorTest.java115 RouteDatabase routeDatabase = new RouteDatabase(); in singleRouteReturnsFailedRoute() local
116 routeDatabase.failed(connection.getRoute()); in singleRouteReturnsFailedRoute()
117 routeSelector = new RouteSelector(address, uri, proxySelector, pool, dns, routeDatabase); in singleRouteReturnsFailedRoute()
300 RouteDatabase routeDatabase = new RouteDatabase(); in nonSslErrorAddsAllTlsModesToFailedRoute() local
302 routeDatabase); in nonSslErrorAddsAllTlsModesToFailedRoute()
307 assertTrue(routeDatabase.failedRoutesCount() == 2); in nonSslErrorAddsAllTlsModesToFailedRoute()
314 RouteDatabase routeDatabase = new RouteDatabase(); in sslErrorAddsOnlyFailedTlsModeToFailedRoute() local
316 routeDatabase); in sslErrorAddsOnlyFailedTlsModeToFailedRoute()
321 assertTrue(routeDatabase.failedRoutesCount() == 1); in sslErrorAddsOnlyFailedTlsModeToFailedRoute()
376 RouteDatabase routeDatabase = new RouteDatabase(); in failedRoutesAreLast() local
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DOkHttpClient.java57 private final RouteDatabase routeDatabase; field in OkHttpClient
75 routeDatabase = new RouteDatabase(); in OkHttpClient()
292 return routeDatabase; in getRoutesDatabase()