Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for flight (0.14 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

      override fun request(): Request = originalRequest
    
      /**
       * Immediately closes the socket connection if it's currently held. Use this to interrupt an
       * in-flight request from any thread. It's the caller's responsibility to close the request body
       * and response body streams; otherwise resources may be leaked.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  2. okhttp/src/main/kotlin/okhttp3/Dispatcher.kt

       * The maximum number of requests to execute concurrently. Above this requests queue in memory,
       * waiting for the running calls to complete.
       *
       * If more than [maxRequests] requests are in flight when this is invoked, those requests will
       * remain in flight.
       */
      var maxRequests = 64
        get() = this.withLock { field }
        set(maxRequests) {
          require(maxRequests >= 1) { "max < 1: $maxRequests" }
          this.withLock {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt

              connectResult = launchTcpConnect()
              nextTcpConnectAtNanos = now + connectDelayNanos
              awaitTimeoutNanos = connectDelayNanos
            }
    
            // Wait for an in-flight connect to complete or fail.
            if (connectResult == null) {
              connectResult = awaitTcpConnect(awaitTimeoutNanos, TimeUnit.NANOSECONDS) ?: continue
            }
    
            if (connectResult.isSuccess) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  4. docs/changelogs/changelog_3x.md

        the thread's `UncaughtExceptionHandler`.
     *  Fix: Don't evict incomplete entries when iterating the cache. We had a bug where iterating
        `Cache.urls()` would prevent in-flight entries from being written.
    
    
    ## Version 3.14.3
    
    _2019-09-10_
    
     *  Fix: Don't lose HTTP/2 flow control bytes when incoming data races with a stream close. If this
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/RoutePlanner.kt

     *     lookups) and attempt a new connection them. When failures occur, retries iterate the list of
     *     available routes.
     *
     * If the pool gains an eligible connection while DNS, TCP, or TLS work is in flight, this finder
     * will prefer pooled connections. Only pooled HTTP/2 connections are used for such de-duplication.
     *
     * It is possible to cancel the finding process by canceling its call.
     *
    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)
  6. samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java

    import okhttp3.Handshake;
    import okhttp3.HttpUrl;
    import okhttp3.OkHttpClient;
    import okhttp3.Protocol;
    import okhttp3.Request;
    import okhttp3.Response;
    
    /**
     * This prints events for a single in-flight call. It won't work for multiple concurrent calls
     * because we don't know what callStartNanos refers to.
     */
    public final class PrintEventsNonConcurrent {
      private final OkHttpClient client = new OkHttpClient.Builder()
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 16 23:20:49 GMT 2020
    - 5.3K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/Cache.kt

       * directory including files that weren't created by the cache.
       */
      @Throws(IOException::class)
      fun delete() {
        cache.delete()
      }
    
      /**
       * Deletes all values stored in the cache. In-flight writes to the cache will complete normally,
       * but the corresponding responses will not be stored.
       */
      @Throws(IOException::class)
      fun evictAll() {
        cache.evictAll()
      }
    
      /**
    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)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

        streamId: Int,
      ) {
        val w1 = source.readInt()
        val exclusive = w1 and 0x80000000.toInt() != 0
        val streamDependency = w1 and 0x7fffffff
        val weight = (source.readByte() and 0xff) + 1
        handler.priority(streamId, streamDependency, weight, exclusive)
      }
    
      @Throws(IOException::class)
      private fun readRstStream(
        handler: Handler,
        length: Int,
        flags: Int,
        streamId: Int,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  9. docs/changelogs/changelog_2x.md

        OkHttp 2 uses the new `Request` class for this.
    
     *  **Dispatcher** is a new class that manages the queue of asynchronous calls. It
        implements limits on total in-flight calls and in-flight calls per host.
    
    #### Implementation changes
    
     * Support Android `TrafficStats` socket tagging.
     * Drop authentication headers on redirect.
     * Added support for compressed data frames.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  10. mockwebserver/README.md

    MockWebServer
    =============
    
    A scriptable web server for testing HTTP clients
    
    
    ### Motivation
    
    This library makes it easy to test that your app Does The Right Thing when it
    makes HTTP and HTTPS calls. It lets you specify which responses to return and
    then verify that requests were made as expected.
    
    Because it exercises your full HTTP stack, you can be confident that you're
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 5K bytes
    - Viewed (1)
Back to top