Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for locality (0.17 sec)

  1. docs/changelogs/changelog_4x.md

    
    ## Version 4.4.1
    
    _2020-03-08_
    
     *  Fix: Don't reuse a connection on redirect if certs match but DNS does not. For better
        locality and performance OkHttp attempts to use the same pooled connection across redirects and
        follow-ups. It independently shares connections when the IP addresses and certificates match,
    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)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RoutePlanner.kt

     * the following strategies:
     *
     *  1. If the current call already has a connection that can satisfy the request it is used. Using
     *     the same connection for an initial exchange and its follow-ups may improve locality.
     *
     *  2. If there is a connection in the pool that can satisfy the request it is used. Note that it is
     *     possible for shared exchanges to make requests to different host names! See
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  3. deploy_website.sh

    DIR=temp-clone
    
    # Delete any existing temporary website clone
    rm -rf $DIR
    
    # Clone the current repo into temp folder
    git clone $REPO $DIR
    # Replace `git clone` with these lines to hack on the website locally
    # cp -a . "../okhttp-website"
    # mv "../okhttp-website" "$DIR"
    
    # Move working directory into temp folder
    cd $DIR
    
    # Generate the API docs
    ./gradlew dokkaHtmlMultiModule
    
    Shell Script
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Nov 20 15:26:12 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

                  routeFailureCount++
                }
              }
    
              e.errorCode == ErrorCode.CANCEL && call.isCanceled() -> {
                // Permit any number of CANCEL errors on locally-canceled calls.
              }
    
              else -> {
                // Everything else wants a fresh connection.
                noNewExchangesEvent = !noNewExchanges
                noNewExchanges = true
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/Cache.kt

     * This can be used so your application can show *something* while waiting for the latest data to be
     * downloaded. To restrict a request to locally-cached resources, add the `only-if-cached`
     * directive:
     *
     * ```java
     * Request request = new Request.Builder()
     *     .cacheControl(new CacheControl.Builder()
     *         .onlyIfCached()
     *         .build())
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/SocksProxyTest.kt

        assertThat(response.body.string()).isEqualTo("abc")
        assertThat(socksProxy.connectionCount()).isEqualTo(1)
      }
    
      @Test
      fun checkRemoteDNSResolve() {
        // This testcase will fail if the target is resolved locally instead of through the proxy.
        server.enqueue(MockResponse.Builder().body("abc").build())
        val client =
          clientTestRule.newClientBuilder()
            .proxy(socksProxy.proxy())
            .build()
        val url =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  7. test_docs.sh

    cat README.md | grep -v 'project website' > docs/index.md
    cp CHANGELOG.md docs/changelogs/changelog.md
    cp CONTRIBUTING.md docs/contribute/contributing.md
    
    # Build the site locally
    Shell Script
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:52:16 GMT 2024
    - 718 bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

        out: Boolean,
      ): Http2Stream {
        check(!client) { "Client cannot push requests." }
        return newStream(associatedStreamId, requestHeaders, out)
      }
    
      /**
       * Returns a new locally-initiated stream.
       *
       * @param out true to create an output stream that we can use to send data to the remote peer.
       *     Corresponds to `FLAG_FIN`.
       */
      @Throws(IOException::class)
      fun newStream(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

          return receivedAge + responseDuration + residentDuration
        }
    
        /**
         * Returns true if the request contains conditions that save the server from sending a response
         * that the client has locally. When a request is enqueued with its own conditions, the built-in
         * response cache won't be used.
         */
        private fun hasConditions(request: Request): Boolean =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

      /** The exception that explains [errorCode]. Null if no exception was provided. */
      internal var errorException: IOException? = null
    
      init {
        if (headers != null) {
          check(!isLocallyInitiated) { "locally-initiated streams shouldn't have headers yet" }
          headersQueue += headers
        } else {
          check(isLocallyInitiated) { "remotely-initiated streams should have headers" }
        }
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
Back to top