Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Wright (0.31 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/connection/RouteSelectorTest.kt

       * https://github.com/square/okhttp/issues/5770
       */
      @Test fun proxySelectorNotCalledForNullHost() {
        // The string '>' is okay in a hostname in HttpUrl, which does very light hostname validation.
        // It is not okay in URI, and so it's stripped and we get a URI with a null host.
        val bogusHostname = ">"
        val address =
          factory.newAddress(
            uriHost = bogusHostname,
    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)
  6. 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)
  7. okhttp/src/test/java/okhttp3/CallTest.kt

        val call = client.newCall(Request(server.url("/a")))
        val executor = Executors.newSingleThreadExecutor()
        val result = executor.submit<Response?> { call.execute() }
        Thread.sleep(100) // wait for it to go in flight.
        call.cancel()
        assertFailsWith<IOException> {
          result.get()!!.body.bytes()
        }
        assertThat(server.requestCount).isEqualTo(1)
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top