- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for doing (0.13 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt
override fun cancel() { exchange.cancel() } } } override fun route(): Route = route override fun cancel() { // 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. */
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) -
okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt
) { // Do nothing. } override fun noNewExchanges() { // Do nothing. } override fun cancel() { canceled = true // Close the raw socket so we don't end up doing synchronous I/O. rawSocket?.closeQuietly() } override fun retry(): RoutePlanner.Plan { return ConnectPlan( taskRunner = taskRunner, connectionPool = connectionPool,
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) -
okhttp/src/main/kotlin/okhttp3/Dispatcher.kt
* become idle after the [onResponse][Callback.onResponse] or [onFailure][Callback.onFailure] * callback has returned. Synchronous calls become idle once [execute()][Call.execute] returns. * This means that if you are doing synchronous calls the network layer will not truly be idle * until every returned [Response] has been closed. */ var idleCallback: Runnable? = null get() = this.withLock { field } set(value) {
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) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt
* Returns -1 if no further cleanups are required. */ fun closeConnections(now: Long): Long { // Compute the concurrent call capacity for each address. We won't close a connection if doing // so would violate a policy, unless it's OLD. val addressStates = this.addressStates for (state in addressStates.values) { state.concurrentCallCapacity = 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) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt
taskRunner.condition.await() } } finally { serialTaskQueue.remove(yieldCompleteTask) } // If we're yielding until we're exhausted and a task run, keep going until a task doesn't run. if (strategy == ResumePriority.AfterOtherTasks && otherTasksStarted) { return yieldUntil(strategy, condition) } } private enum class ResumePriority {
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) -
okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt
assertThat(synStream.outFinished).isFalse() val ping = peer.takeFrame() assertThat(ping.type).isEqualTo(Http2.TYPE_PING) } /** * Test that the client sends a RST_STREAM if doing so won't disrupt the output stream. */ @Test fun clientClosesClientInputStream() { // 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)