Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CAmount (0.14 sec)

  1. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

      }
    
      private fun updateMaxConcurrentStreams(
        connection: Http2Connection,
        amount: Int,
      ) {
        val settings = Settings()
        settings[Settings.MAX_CONCURRENT_STREAMS] = amount
        connection.readerRunnable.applyAndAckSettings(true, settings)
        assertThat(connection.peerSettings[Settings.MAX_CONCURRENT_STREAMS]).isEqualTo(amount)
        taskFaker.runTasks()
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         * values must be between 1 and [Integer.MAX_VALUE] when converted to milliseconds.
         *
         * The close timeout is the maximum amount of time after the client calls [WebSocket.close] to
         * wait for a graceful shutdown. If the server doesn't respond the web socket will be canceled.
         * The default value is 60 seconds.
         */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

         * the web socket! It's possible that we're writing faster than the peer can read.
         */
        private const val MAX_QUEUE_SIZE = 16L * 1024 * 1024 // 16 MiB.
    
        /**
         * The maximum amount of time after the client calls [close] to wait for a graceful shutdown. If
         * the server doesn't respond the web socket will be canceled.
         */
        const val CANCEL_AFTER_CLOSE_MILLIS = 60L * 1000
    
        /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

          return state.policy.backoffDelayMillis.jitterBy(state.policy.backoffJitterMillis) * 1_000_000
        }
      }
    
      private fun Long.jitterBy(amount: Int): Long {
        return this + ThreadLocalRandom.current().nextInt(amount * -1, amount)
      }
    
      class AddressState(
        val address: Address,
        val queue: TaskQueue,
        var policy: ConnectionPool.AddressPolicy,
      ) {
        /**
    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)
Back to top