Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for 4shared (0.25 sec)

  1. docs/changelogs/changelog_4x.md

     *  Fix: Retry automatically when incorrectly sharing a connection among multiple hostnames. OkHttp
        shares connections when hosts share both IP addresses and certificates, such as `squareup.com`
        and `www.squareup.com`. If a server refuses such sharing it will return HTTP 421 and OkHttp will
        automatically retry on an unshared connection.
     *  Fix: Don't crash if a TLS tunnel's response body is truncated.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

    import okhttp3.internal.ws.RealWebSocket
    import okio.BufferedSink
    import okio.BufferedSource
    
    /**
     * A connection to a remote web server capable of carrying 1 or more concurrent streams.
     *
     * Connections are shared in a connection pool. Accesses to the connection's state must be guarded
     * by holding a lock on the connection.
     */
    class RealConnection(
      val taskRunner: TaskRunner,
      val connectionPool: RealConnectionPool,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

          sourceCount++
        }
    
        return RelaySource()
      }
    
      internal inner class RelaySource : Source {
        private val timeout = Timeout()
    
        /** The operator to read and write the shared file. Null if this source is closed. */
        private var fileOperator: FileOperator? = FileOperator(file!!.channel)
    
        /** The next byte to read. This is always less than or equal to [upstreamPos]. */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt

    import okhttp3.internal.connection.RealRoutePlanner
    import okhttp3.internal.connection.RouteDatabase
    
    /**
     * Manages reuse of HTTP and HTTP/2 connections for reduced network latency. HTTP requests that
     * share the same [Address] may share a [Connection]. This class implements the policy
     * of which connections to keep open for future use.
     *
     * @constructor Create a new connection pool with tuning parameters appropriate for a single-user
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 03 20:39:41 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

        assertThat(original.interceptors.size).isEqualTo(0)
        assertThat(original.networkInterceptors.size).isEqualTo(0)
      }
    
      /**
       * When copying the client, stateful things like the connection pool are shared across all
       * clients.
       */
      @Test fun cloneSharesStatefulInstances() {
        val client = clientTestRule.newClient()
    
        // Values should be non-null.
        val a = client.newBuilder().build()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt

       * the internal list.
       */
      @JvmStatic
      fun fragmentBuffer(buffer: Buffer): Buffer {
        // Write each byte into a new buffer, then clone it so that the segments are shared.
        // Shared segments cannot be compacted so we'll get a long chain of short segments.
        val result = Buffer()
        while (!buffer.exhausted()) {
          val box = Buffer()
          box.write(buffer, 1)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/Address.kt

     * explicitly requested), this also includes that proxy information. For secure connections the
     * address also includes the SSL socket factory, hostname verifier, and certificate pinner.
     *
     * HTTP requests that share the same [Address] may also share the same [Connection].
     */
    class Address(
      uriHost: String,
      uriPort: Int,
      /** Returns the service that will be used to resolve IP addresses for hostnames. */
      @get:JvmName("dns") val dns: Dns,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

     * prefix are called a 'section'. There are 128 code points per section.
     *
     * Ranges Data (32,612 bytes)
     * ==========================
     *
     * Each entry is 4 bytes, and represents a _range_ of code points that all share a common 14-bit
     * prefix. Entries are sorted by their complete code points.
     *
     * The 4 bytes are named b0, b1, b2 and b3. We also define these supplemental values:
     *
     *  * **b2a**: b2 + 0x80
     *  * **b3a**: b3 + 0x80
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Apr 02 11:39:58 GMT 2024
    - 9K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

                if (wasEmpty) {
                  condition.signalAll()
                }
              }
            }
          }
    
          // Update the connection flow control, as this is a shared resource.
          // Even if our stream doesn't need more data, others might.
          // But delay updating the stream flow control until that stream has been
          // consumed
          updateConnectionFlowControl(byteCount)
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  10. docs/features/https.md

    OkHttpClient client = new OkHttpClient.Builder()
        .connectionSpecs(Collections.singletonList(spec))
        .build();
    ```
    
    ### Debugging TLS Handshake Failures
    
    The TLS handshake requires clients and servers to share a common TLS version and cipher suite. This
    depends on the JVM or Android version, OkHttp version, and web server configuration. If there is no
    common cipher suite and TLS version, your call will fail like this:
    
    ```
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Dec 24 00:16:30 GMT 2022
    - 10.5K bytes
    - Viewed (0)
Back to top