Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for ipvs (0.12 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

        }
      }
      return result.readUtf8()
    }
    
    /**
     * Returns the canonical address for [address]. If [address] is an IPv6 address that is mapped to an
     * IPv4 address, this returns the IPv4-mapped address. Otherwise, this returns [address].
     *
     * https://en.wikipedia.org/wiki/IPv6#IPv4-mapped_IPv6_addresses
     */
    internal fun canonicalizeInetAddress(address: ByteArray): ByteArray {
      return when {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt

      private val hostAddresses: MutableMap<String, List<InetAddress>> = mutableMapOf()
      private val requestedHosts: MutableList<String> = mutableListOf()
      private var nextAddress = 0xff000064L // 255.0.0.100 in IPv4; ::ff00:64 in IPv6.
    
      /** Sets the results for `hostname`.  */
      operator fun set(
        hostname: String,
        addresses: List<InetAddress>,
      ): FakeDns {
        hostAddresses[hostname] = addresses
        return this
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  3. mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt

      }
    
      /** No SNI for literal IPv6 addresses. */
      @Test
      fun ipv6() {
        val recordedRequest = requestToHostnameViaProxy("2607:f8b0:400b:804::200e")
        assertThat(recordedRequest.requestUrl!!.host).isEqualTo("2607:f8b0:400b:804::200e")
        assertThat(recordedRequest.handshakeServerNames).isEmpty()
      }
    
      /** No SNI for literal IPv4 addresses. */
      @Test
      fun ipv4() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (1)
  4. okhttp/src/main/kotlin/okhttp3/Dns.kt

     * [system DNS service][SYSTEM], which is the default. Some applications may provide their own
     * implementation to use a different DNS server, to prefer IPv6 addresses, to prefer IPv4 addresses,
     * or to force a specific known IP address.
     *
     * Implementations of this interface must be safe for concurrent use.
     */
    fun interface Dns {
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  5. docs/changelogs/changelog_4x.md

     *  Fix: Recover gracefully when a coalesced connection immediately goes unhealthy.
     *  Fix: Defer the `SecurityException` when looking up the default proxy selector.
     *  Fix: Don't use brackets formatting IPv6 host names in MockWebServer.
     *  Fix: Don't permit cache iterators to remove entries that are being written.
    
    
    ## Version 4.0.1
    
    _2019-07-10_
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        // IPv6 colons don't interfere with port numbers or passwords.
        assertThat(parse("http://[::1]:8080/").port).isEqualTo(8080)
        assertThat(parse("http://user:password@[::1]/").password).isEqualTo("password")
        assertThat(parse("http://user:password@[::1]:8080/").host).isEqualTo("::1")
    
        // Permit the contents of IPv6 addresses to be percent-encoded...
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

        assertThat(routeSelector.hasNext()).isTrue()
        val (ipv4_1, ipv4_2) = dns.allocate(2)
        val (ipv6_1, ipv6_2) = dns.allocateIpv6(2)
        dns[uriHost] = listOf(ipv4_1, ipv4_2, ipv6_1, ipv6_2)
    
        val selection = routeSelector.next()
        assertThat(selection.routes.map { it.socketAddress.address }).containsExactly(
          ipv4_1,
          ipv4_2,
          ipv6_1,
          ipv6_2,
        )
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/FastFallbackTest.kt

    import org.junitpioneer.jupiter.RetryingTest
    import org.opentest4j.TestAbortedException
    
    /**
     * This test binds two different web servers (IPv4 and IPv6) to the same port, but on different
     * local IP addresses. Requests made to `127.0.0.1` will reach the IPv4 server, and requests made to
     * `::1` will reach the IPv6 server.
     *
     * By orchestrating two different servers with the same port but different IP addresses, we can
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

        val request = Request(server1.url("/"))
    
        server1.enqueue(refusedStream)
        server2.enqueue(bodyResponse)
    
        dns[server1.hostName] = listOf(ipv6, ipv4)
        socketFactory[ipv6] = server1.inetSocketAddress
        socketFactory[ipv4] = server2.inetSocketAddress
    
        client =
          client.newBuilder()
            .fastFallback(false)
            .apply {
              retryOnConnectionFailure = false
            }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  10. okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt

      }
    
      @Before
      fun init() {
        assumeTrue("Supported on API 29+", Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
    
        client =
          OkHttpClient.Builder()
            .dns(AsyncDns.toDns(AndroidAsyncDns.IPv4, AndroidAsyncDns.IPv6))
            .sslSocketFactory(localhost.sslSocketFactory(), localhost.trustManager)
            .build()
    
        serverRule.server.useHttps(localhost.sslSocketFactory())
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (0)
Back to top