Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for Freddy (0.39 sec)

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

        // Close the raw socket so we don't end up doing synchronous I/O.
        rawSocket?.closeQuietly()
      }
    
      override fun socket(): Socket = socket!!
    
      /** Returns true if this connection is ready to host new streams. */
      fun isHealthy(doExtensiveChecks: Boolean): Boolean {
        lock.assertNotHeld()
    
        val nowNs = System.nanoTime()
    
        val rawSocket = this.rawSocket!!
        val socket = this.socket!!
    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. docs/changelogs/changelog_4x.md

     *  Fix: Don't call `EventListener.responseHeadersStart()` or `responseBodyStart()` until bytes have
        been received. Previously these events were incorrectly sent too early, when OkHttp was ready to
        read the response headers or body, which mislead tracing tools. Note that the `responseFailed()`
        event always used to follow one of these events; now it may be sent without them.
    
     *  New: Upgrade to Kotlin 1.3.61.
    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)
  3. okhttp/src/main/kotlin/okhttp3/EventListener.kt

       * [Call.request] is a redirect to a different address.
       *
       * Prior to OkHttp 4.3 this was incorrectly invoked when the client was ready to read headers.
       * This was misleading for tracing because it was too early.
       */
      open fun responseHeadersStart(call: Call) {
      }
    
      /**
       * Invoked immediately after receiving response headers.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

            if (connections.isEmpty()) cleanupQueue.cancelAll()
    
            // Clean up again immediately.
            return 0L
          }
    
          earliestEvictableConnection != null -> {
            // A connection will be ready to evict soon.
            return earliestEvictableIdleAtNs + keepAliveDurationNs - now
          }
    
          inUseConnectionCount > 0 -> {
    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)
  5. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

                  if (errorExceptionToDeliver == null &&
                    unacknowledgedBytesRead >= connection.okHttpSettings.initialWindowSize / 2
                  ) {
                    // Flow control: notify the peer that we're ready for more data! Only send a
                    // WINDOW_UPDATE if the stream isn't in error.
                    connection.writeWindowUpdateLater(id, unacknowledgedBytesRead)
    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)
  6. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        assertThat(redirect.requestLine).isEqualTo("GET /new-path HTTP/1.1")
      }
    
      /**
       * Test that MockWebServer blocks for a call to enqueue() if a request is made before a mock
       * response is ready.
       */
      @Test
      fun dispatchBlocksWaitingForEnqueue() {
        Thread {
          try {
            Thread.sleep(1000)
          } catch (ignored: InterruptedException) {
          }
          server.enqueue(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  7. docs/recipes.md

        ```
    
    ### Asynchronous Get ([.kt][AsynchronousGetKotlin], [.java][AsynchronousGetJava])
    
    Download a file on a worker thread, and get called back when the response is readable. The callback is made after the response headers are ready. Reading the response body may still block. OkHttp doesn't currently offer asynchronous APIs to receive a response body in parts.
    
    === ":material-language-kotlin: Kotlin"
        ```kotlin
          private val client = OkHttpClient()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Feb 18 08:52:22 GMT 2022
    - 40.2K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt

        try {
          while (tcpConnectsInFlight.isNotEmpty() || routePlanner.hasNext()) {
            if (routePlanner.isCanceled()) throw IOException("Canceled")
    
            // Launch a new connection if we're ready to.
            val now = taskRunner.backend.nanoTime()
            var awaitTimeoutNanos = nextTcpConnectAtNanos - now
            var connectResult: ConnectResult? = null
    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)
  9. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

            responseBodyComplete()
          }
          closed = true
        }
      }
    
      companion object {
        private const val NO_CHUNK_YET = -1L
    
        private const val STATE_IDLE = 0 // Idle connections are ready to write request headers.
        private const val STATE_OPEN_REQUEST_BODY = 1
        private const val STATE_WRITING_REQUEST_BODY = 2
        private const val STATE_READ_RESPONSE_HEADERS = 3
    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)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

      private var protocol: Protocol? = null
      private var source: BufferedSource? = null
      private var sink: BufferedSink? = null
      private var connection: RealConnection? = null
    
      /** True if this connection is ready for use, including TCP, tunnels, and TLS. */
      override val isReady: Boolean
        get() = protocol != null
    
      private fun copy(
        attempt: Int = this.attempt,
        tunnelRequest: Request? = this.tunnelRequest,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
Back to top