Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Wright (0.22 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/internal/connection/RealConnection.kt

          allocationLimit = settings.getMaxConcurrentStreams()
    
          if (allocationLimit < oldLimit) {
            // We might need new connections to keep policies satisfied
            connectionPool.scheduleOpener(route.address)
          } else if (allocationLimit > oldLimit) {
            // We might no longer need some connections
            connectionPool.scheduleCloser()
          }
        }
      }
    
    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)
  3. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

          this.streamId = streamId
          this.windowSizeIncrement = windowSizeIncrement
        }
    
        override fun priority(
          streamId: Int,
          streamDependency: Int,
          weight: Int,
          exclusive: Boolean,
        ) {
          throw UnsupportedOperationException()
        }
    
        override fun pushPromise(
          streamId: Int,
          associatedStreamId: Int,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  4. docs/changelogs/changelog_4x.md

        had a crash `IllegalArgumentException: Not a Conscrypt trust manager` because we depended on
        initialization order of companion objects.
    
    
    ## Version 4.7.1
    
    _2020-05-18_
    
     *  Fix: Pass the right arguments in the trust manager created for `addInsecureHost()`. Without the
        fix insecure hosts crash with an `IllegalArgumentException` on Android.
    
    
    ## Version 4.7.0
    
    _2020-05-17_
    
    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)
  5. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        queueDispatcher.enqueueResponse(MockResponse(body = "call1 response"))
    
        // We use a re-entrant dispatcher to initiate one HTTPS connection while the other is in flight.
        server.dispatcher =
          object : Dispatcher() {
            var requestCount = 0
    
            override fun dispatch(request: RecordedRequest): MockResponse {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  6. 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)
  7. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        // Cause the rebuild action to fail.
        filesystem.setFaultyRename(cacheDir / DiskLruCache.JOURNAL_FILE_BACKUP, true)
        taskFaker.runNextTask()
    
        // In-flight editors can commit and have their values retained.
        commitEditor.setString(0, "c")
        commitEditor.setString(1, "c")
        commitEditor.commit()
        assertValue("c", "c", "c")
        abortEditor.abort()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

            -> {
              // These codes can be cached unless headers forbid it.
            }
    
            HTTP_MOVED_TEMP,
            HTTP_TEMP_REDIRECT,
            -> {
              // These codes can only be cached with the right response headers.
              // http://tools.ietf.org/html/rfc7234#section-3
              // s-maxage is not checked because OkHttp is a private cache that should ignore s-maxage.
              if (response.header("Expires") == null &&
    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)
  9. okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

        )
    
        taskFaker.assertNoMoreTasks()
      }
    
      /**
       * This test puts several connections in flight that all fail at approximately the same time. It
       * confirms the fast fallback implements these invariants:
       *
       *  * if there's no TCP connect in flight, start one.
       *  * don't start a new TCP connect within 250 ms of the previous TCP connect.
       */
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        assertThat(data2.streamId).isEqualTo(3)
        assertArrayEquals("fghi".toByteArray(), data2.data)
      }
    
      /**
       * Confirm that we account for discarded data frames. It's possible that data frames are in-flight
       * just prior to us canceling a stream.
       */
      @Test fun discardedDataFramesAreCounted() {
        // Write the mocking script.
        peer.sendFrame().settings(Settings())
        peer.acceptFrame() // ACK
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
Back to top