Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Peaches (0.19 sec)

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

       */
      internal var allocationLimit = 1
        private set
    
      /** Current calls carried by this connection. */
      val calls = mutableListOf<Reference<RealCall>>()
    
      /** Timestamp when `allocations.size()` reached zero. Also assigned upon initial connection. */
      var idleAtNs = Long.MAX_VALUE
    
      /**
       * Returns true if this is an HTTP/2 connection. Such connections can be used in multiple HTTP
       * requests simultaneously.
    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)
  2. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

            }
            is SocketException -> {
              // Conscrypt, JDK 8 (>= 292), JDK 9
            }
            is ConnectionShutdownException -> {
              // It didn't fail until it reached the application layer.
            }
            else -> {
              assertThat(expected.message).isEqualTo("exhausted all routes")
            }
          }
        }
      }
    
      @Test
      fun invalidClientAuthEvents() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

            responseBodyComplete()
            throw e
          }
        }
    
        /**
         * Closes the cache entry and makes the socket available for reuse. This should be invoked when
         * the end of the body has been reached.
         */
        fun responseBodyComplete() {
          if (state == STATE_CLOSED) return
          if (state != STATE_READING_RESPONSE_BODY) throw IllegalStateException("state: $state")
    
          detachTimeout(timeout)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Cache.kt

    import okio.FileSystem
    import okio.ForwardingSink
    import okio.ForwardingSource
    import okio.Path
    import okio.Path.Companion.toOkioPath
    import okio.Sink
    import okio.Source
    import okio.buffer
    
    /**
     * Caches HTTP and HTTPS responses to the filesystem so they may be reused, saving time and
     * bandwidth.
     *
     * The Cache instance must have exclusive access to the [directory], since the internal data structures
    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)
  5. okhttp/src/main/kotlin/okhttp3/CacheControl.kt

      @get:JvmName("maxAgeSeconds") val maxAgeSeconds: Int,
      /**
       * The "s-maxage" directive is the max age for shared caches. Not to be confused with "max-age"
       * for non-shared caches, As in Firefox and Chrome, this directive is not honored by this cache.
       */
      @get:JvmName("sMaxAgeSeconds") val sMaxAgeSeconds: Int,
      val isPrivate: Boolean,
      val isPublic: Boolean,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 10K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

        port == other.port &&
        scheme == other.scheme
    
    internal fun EventListener.asFactory() = EventListener.Factory { this }
    
    /**
     * Reads until this is exhausted or the deadline has been reached. This is careful to not extend the
     * deadline if one exists already.
     */
    @Throws(IOException::class)
    internal fun Source.skipAll(
      duration: Int,
      timeUnit: TimeUnit,
    ): Boolean {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  7. docs/changelogs/changelog_2x.md

        cancelation.
     *  Fix: When a network interceptor mutates a request, that change is now
        reflected in `Response.networkResponse()`.
     *  Fix: Badly-behaving caches now throw a checked exception instead of a
        `NullPointerException`.
     *  Fix: Better handling of uncaught exceptions in MockWebServer with HTTP/2.
    
    ## Version 2.3.0
    
    _2015-03-16_
    
    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)
  8. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

       *
       * This returns null if:
       *
       *  * The stream is exhausted.
       *  * We've read all of the bytes of an object whose length is known.
       *  * We've reached the [DerHeader.TAG_END_OF_CONTENTS] of an object whose length is unknown.
       */
      fun peekHeader(): DerHeader? {
        var result = peekedHeader
    
        if (result == null) {
          result = readHeader()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

        //
        // Also count the evictable connections to find out if we must close an EVICTABLE connection
        // before its keepAliveDurationNs is reached.
        var earliestOldIdleAtNs = (now - keepAliveDurationNs) + 1
        var earliestOldConnection: RealConnection? = null
        var earliestEvictableIdleAtNs = Long.MAX_VALUE
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

          Thread.currentThread().interrupt() // Retain interrupted status.
          throw InterruptedIOException()
        }
      }
    
      /**
       * The Okio timeout watchdog will call [timedOut] if the timeout is reached. In that case we close
       * the stream (asynchronously) which will notify the waiting thread.
       */
      internal inner class StreamTimeout : AsyncTimeout() {
        override fun timedOut() {
          closeLater(ErrorCode.CANCEL)
    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