Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 44 for connectionPool (0.04 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt

       * [Call.request] is a redirect to a different host.
       *
       * If the [Call] is able to reuse an existing pooled connection, this method will not be invoked.
       * See [ConnectionPool].
       */
      open fun dnsStart(
        call: Call,
        domainName: String,
      ) {
      }
    
      /**
       * Invoked immediately after a DNS lookup.
       *
       * This method is invoked after [dnsStart].
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 21:03:04 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

        val tunnelRequest =
          when {
            route.requiresTunnel() -> createTunnelRequest(route)
            else -> null
          }
    
        return ConnectPlan(
          taskRunner = taskRunner,
          connectionPool = connectionPool,
          readTimeoutMillis = readTimeoutMillis,
          writeTimeoutMillis = writeTimeoutMillis,
          socketConnectTimeoutMillis = socketConnectTimeoutMillis,
          socketReadTimeoutMillis = socketReadTimeoutMillis,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Oct 08 03:50:05 UTC 2025
    - 12K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt

          }
        }.also { expected ->
          assertEquals(cancelMode == INTERRUPT, Thread.interrupted())
        }
        responseBody.close()
        assertEquals(if (connectionType == H2) 1 else 0, client.connectionPool.connectionCount())
      }
    
      @Test
      fun cancelAndFollowup() {
        val responseBodySize = 8 * 1024 * 1024 // 8 MiB.
        server.enqueue(
          MockResponse
            .Builder()
            .body(
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/TestTls13Request.kt

      urls: List<String>,
      client: OkHttpClient,
    ) {
      try {
        for (url in urls) {
          sendRequest(client, url)
        }
      } finally {
        client.dispatcher.executorService.shutdownNow()
        client.connectionPool.evictAll()
      }
    }
    
    private fun buildClient(vararg specs: ConnectionSpec): OkHttpClient =
      OkHttpClient
        .Builder()
        .connectionSpecs(listOf(*specs))
        .build()
    
    private fun sendRequest(
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu May 22 14:39:30 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnection.kt

              override val source = Buffer()
    
              override fun cancel() {
              }
            }
    
          val result =
            RealConnection(
              taskRunner = taskRunner,
              connectionPool = connectionPool,
              route = route,
              rawSocket = JavaNetSocket(),
              javaNetSocket = socket,
              handshake = null,
              protocol = Protocol.HTTP_2,
              socket = bufferedSocket,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 21:55:03 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  6. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        val request = Request.Builder().url(server.url("/")).build()
    
        client.newCall(request).execute().use { response ->
          assertEquals(200, response.code)
        }
    
        client.connectionPool.evictAll()
        assertEquals(0, client.connectionPool.connectionCount())
    
        client.newCall(request).execute().use { response ->
          assertEquals(200, response.code)
        }
    
        assertEquals(2, sessionIds.size)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 29.9K bytes
    - Viewed (0)
  7. okhttp/api/jvm/okhttp.api

    	public final fun certificatePinner ()Lokhttp3/CertificatePinner;
    	public final fun connectTimeoutMillis ()I
    	public final fun connectionPool ()Lokhttp3/ConnectionPool;
    	public final fun connectionSpecs ()Ljava/util/List;
    	public final fun cookieJar ()Lokhttp3/CookieJar;
    	public final fun dispatcher ()Lokhttp3/Dispatcher;
    	public final fun dns ()Lokhttp3/Dns;
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 70.2K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt

    }
    
    suspend fun main() {
      val publicSuffixListGenerator = PublicSuffixListGenerator()
    
      try {
        publicSuffixListGenerator.import()
      } finally {
        publicSuffixListGenerator.client.run {
          connectionPool.evictAll()
          dispatcher.executorService.shutdownNow()
        }
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Aug 06 05:33:11 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  9. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/TestDohMain.kt

            client = bootstrapClient,
            http2Only = true,
            workingOnly = true,
            getOnly = true,
          )
        runBatch(dnsProviders, names)
      } finally {
        bootstrapClient.connectionPool.evictAll()
        bootstrapClient.dispatcher.executorService.shutdownNow()
        bootstrapClient.cache?.close()
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  10. docs/changelogs/upgrading_to_okhttp_4.md

       serverSocketFactory
     * **MultipartBody.Part**: body, headers
     * **MultipartBody.**: boundary, parts, size, type
     * **OkHttpClient**: authenticator, cache, callTimeoutMillis, certificatePinner,
       connectTimeoutMillis, connectionPool, connectionSpecs, cookieJar, dispatcher, dns,
       eventListenerFactory, followRedirects, followSslRedirects, hostnameVerifier, interceptors,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
Back to top