Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 121 for whale (0.19 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

    internal inline fun ignoreIoExceptions(block: () -> Unit) {
      try {
        block()
      } catch (_: IOException) {
      }
    }
    
    internal fun Buffer.skipAll(b: Byte): Int {
      var count = 0
      while (!exhausted() && this[0] == b) {
        count++
        readByte()
      }
      return count
    }
    
    /**
     * Returns the index of the next non-whitespace character in this. Result is undefined if input
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-HeadersCommon.kt

      name: String,
      value: String,
    ) = apply {
      namesAndValues.add(name)
      namesAndValues.add(value.trim())
    }
    
    internal fun Headers.Builder.commonRemoveAll(name: String) =
      apply {
        var i = 0
        while (i < namesAndValues.size) {
          if (name.equals(namesAndValues[i], ignoreCase = true)) {
            namesAndValues.removeAt(i) // name
            namesAndValues.removeAt(i) // value
            i -= 2
          }
          i += 2
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

        private fun portColonOffset(
          input: String,
          pos: Int,
          limit: Int,
        ): Int {
          var i = pos
          while (i < limit) {
            when (input[i]) {
              '[' -> {
                while (++i < limit) {
                  if (input[i] == ']') break
                }
              }
              ':' -> return i
            }
            i++
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteSelector.kt

      @Throws(IOException::class)
      operator fun next(): Selection {
        if (!hasNext()) throw NoSuchElementException()
    
        // Compute the next set of routes to attempt.
        val routes = mutableListOf<Route>()
        while (hasNextProxy()) {
          // Postponed routes are always tried last. For example, if we have 2 proxies and all the
          // routes for proxy1 should be postponed, we'll move to proxy2. Only after we've exhausted
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  5. docs/changelogs/changelog_3x.md

        or newer.
    
        ```kotlin
        implementation("com.squareup.okio:okio:1.17.3")
        ```
    
     *  Fix: Don't miss cancels when sending HTTP/2 request headers.
     *  Fix: Don't miss whole operation timeouts when calls redirect.
     *  Fix: Don't leak connections if web sockets have malformed responses or if `onOpen()` throws.
     *  Fix: Don't retry when request bodies fail due to `FileNotFoundException`.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

      }
    
      /** Wait for the client to receive `dataLength` DATA frames.  */
      private fun waitForDataFrames(dataLength: Int) {
        val expectedFrameCount = dataLength / 16384
        var dataFrameCount = 0
        while (dataFrameCount < expectedFrameCount) {
          val log = testLogHandler.take()
          if (log == "FINE: << 0x00000003 16384 DATA          ") {
            dataFrameCount++
          }
        }
      }
    
      @ParameterizedTest
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

          sink.close()
        }
      }
    
      @Throws(IOException::class)
      private fun writeContinuationFrames(
        streamId: Int,
        byteCount: Long,
      ) {
        var byteCount = byteCount
        while (byteCount > 0L) {
          val length = minOf(maxFrameSize.toLong(), byteCount)
          byteCount -= length
          frameHeader(
            streamId = streamId,
            length = length.toInt(),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

        routePlanner.autoGeneratePlans = true
        val address = routePlanner.address
        val pool = routePlanner.pool
    
        // Add a connection to the pool that won't expire for a while
        routePlanner.defaultConnectionIdleAtNanos = expireLater
        setPolicy(pool, address, ConnectionPool.AddressPolicy(1))
        assertThat(pool.connectionCount()).isEqualTo(1)
    
    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)
  9. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

        clientListener.assertOpen()
    
        // Send messages until the client's outgoing buffer overflows!
        val message: ByteString = ByteString.of(*ByteArray(1024 * 1024))
        var messageCount: Long = 0
        while (true) {
          val success = webSocket.send(message)
          if (!success) break
          messageCount++
          val queueSize = webSocket.queueSize()
          assertThat(queueSize).isBetween(0L, messageCount * message.size)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
  10. okhttp/src/test/java/okhttp3/internal/ws/WebSocketReaderTest.kt

        data.write("880203ee".decodeHex()) // Close with code 1006
        for (i in 1015..2999) {
          data.write(("8802" + format("%04X", i)).decodeHex()) // Close with code 'i'
        }
        var count = 0
        while (!data.exhausted()) {
          assertFailsWith<ProtocolException> {
            clientReader.processNextFrame()
          }.also { expected ->
            assertThat(expected.message!!)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.4K bytes
    - Viewed (0)
Back to top