Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 74 for exhaust (0.09 sec)

  1. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        limiter.acquire(1); // R0.00, from capacity
        limiter.acquire(3); // R0.00, from capacity
        limiter.acquire(1); // R0.00, concluding a burst of 5 permits
    
        limiter.acquire(); // R0.20, capacity exhausted
        assertEvents(
            "U1.00", "U1.00", "R0.00", "R0.00", "R0.00", "R0.00", // first request and burst
            "R0.20");
      }
    
      public void testCreateWarmupParameterValidation() {
        RateLimiter unused;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

                  cancel()
                }
              }
            } else if (messageOrClose == null) {
              return false // The queue is exhausted.
            }
          }
        }
    
        try {
          if (pong != null) {
            writer!!.writePong(pong)
          } else if (messageOrClose is Message) {
            val message = messageOrClose as Message
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Cache.kt

              val peerCertificates = readCertificateList(source)
              val localCertificates = readCertificateList(source)
              val tlsVersion =
                if (!source.exhausted()) {
                  TlsVersion.forJavaName(source.readUtf8LineStrict())
                } else {
                  TlsVersion.SSL_3_0
                }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Ordering.java

      /**
       * Returns the least of the specified values according to this ordering. If there are multiple
       * least values, the first of those is returned. The iterator will be left exhausted: its {@code
       * hasNext()} method will return {@code false}.
       *
       * <p><b>Java 8+ users:</b> Use {@code Streams.stream(iterator).min(thisComparator).get()} instead
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/EventListener.kt

       *
       * Will only be invoked for requests having a response body e.g. won't be invoked for a web socket
       * upgrade.
       *
       * If the response body is closed before the response body is exhausted, this is invoked at the
       * time it is closed. In such calls [byteCount] is the number of bytes returned to the
       * application. This may be smaller than the resource's byte count if were read to completion.
       *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

           * propagate the never indexed flag of a header.
           */
          @Throws(IOException::class)
          fun readHeaders() {
            while (!source.exhausted()) {
              val b = source.readByte() and 0xff
              when {
                b == 0x80 -> {
                  // 10000000
                  throw IOException("index == 0")
                }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

              break // End of journal.
            }
          }
    
          redundantOpCount = lineCount - lruEntries.size
    
          // If we ended on a truncated line, rebuild the journal before appending to it.
          if (!exhausted()) {
            rebuildJournal()
          } else {
            journalWriter?.closeQuietly()
            journalWriter = newJournalWriter()
          }
        }
      }
    
      @Throws(FileNotFoundException::class)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  8. src/bytes/bytes.go

    		if tr < sr {
    			tr, sr = sr, tr
    		}
    		// ASCII only, sr/tr must be upper/lower case
    		if 'A' <= sr && sr <= 'Z' && tr == sr+'a'-'A' {
    			continue
    		}
    		return false
    	}
    	// Check if we've exhausted both strings.
    	return len(s) == len(t)
    
    hasUnicode:
    	s = s[i:]
    	t = t[i:]
    	for len(s) != 0 && len(t) != 0 {
    		// Extract first rune from each.
    		var sr, tr rune
    		if s[0] < utf8.RuneSelf {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  9. docs/changelogs/changelog_3x.md

     *  Fix: Don't corrupt the response cache when a 304 (Not Modified) response
        overrides the stored "Content-Encoding" header.
     *  Fix: Gracefully shut down the HTTP/2 connection before it exhausts the
        namespace of stream IDs (~536 million streams).
     *  Fix: Never pass a null `Route` to `Authenticator`. There was a bug where
        routes were omitted for eagerly-closed connections.
    
    ## Version 3.9.1
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/CallTest.kt

        assertThat(response.header("h2")).isEqualTo("v2")
        assertThat(source.readUtf8(5)).isEqualTo("Hello")
        assertThat(source.readUtf8(7)).isEqualTo("Bonjour")
        assertThat(source.exhausted()).isTrue()
        assertThat(response.trailers()).isEqualTo(headersOf("trailers", "boom"))
      }
    
      @Test
      fun clientReadsHeadersDataTrailersHttp2() {
        platform.assumeHttp2Support()
        server.enqueue(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
Back to top