Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for progress (0.15 sec)

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

     * blast radius possible. If an HTTP/2 stream is active, canceling will cancel that stream but not
     * the other streams sharing its connection. But if the TLS handshake is still in progress then
     * canceling may break the entire connection.
     */
    class RealCall(
      val client: OkHttpClient,
      /** The application's original request unadulterated by redirects or auth headers. */
      val originalRequest: Request,
    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

            executableCalls.add(asyncCall)
            runningAsyncCalls.add(asyncCall)
          }
          isRunning = runningCallsCount() > 0
        }
    
        // Avoid resubmitting if we can't logically progress
        // particularly because RealCall handles a RejectedExecutionException
        // by executing on the same thread.
        if (executorService.isShutdown) {
          for (i in 0 until executableCalls.size) {
    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-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

              currentTask = coordinatorTask
              taskRunner.condition.signalAll()
            }
          }
    
        // Let the coordinator process its interruption.
        runTasks()
      }
    
      /** Ask a single task to proceed. Used by the test thread only. */
      fun runNextTask() {
        taskRunner.assertThreadDoesntHoldLock()
    
        taskRunner.lock.withLock {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

     *
     * The task runner is also responsible for releasing held threads when the library is unloaded.
     * This is for the benefit of container environments that implement code unloading.
     *
     * Most applications should share a process-wide [TaskRunner] and use queues for per-client work.
     */
    class TaskRunner(
      val backend: Backend,
      internal val logger: Logger = TaskRunner.logger,
    ) {
      val lock: ReentrantLock = ReentrantLock()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  5. CHANGELOG.md

        connections.
    
     *  Fix: Immediately update the connection's flow control window instead of waiting for the
        receiving stream to process it.
    
        This change may increase OkHttp's memory use for applications that make many concurrent HTTP
        calls and that can receive data faster than they can process it. Previously, OkHttp limited
        HTTP/2 to 16 MiB of unacknowledged data per connection. With this fix there is a limit of 16 MiB
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

                currentPushRequests.remove(streamId)
              }
            }
          }
        }
      }
    
      /**
       * Eagerly reads `byteCount` bytes from the source before launching a background task to
       * process the data.  This avoids corrupting the stream.
       */
      @Throws(IOException::class)
      internal fun pushDataLater(
        streamId: Int,
        source: BufferedSource,
        byteCount: Int,
        inFinished: Boolean,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        expected: String?,
        source: Source?,
      ) {
        val actual = source!!.buffer().readUtf8()
        assertThat(actual).isEqualTo(expected)
      }
    
      /**
       * Returns true when all work currently in progress by the watchdog have completed. This method
       * creates more work for the watchdog and waits for that work to be executed. When it is, we know
       * work that preceded this call is complete.
       */
    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