Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 76 for exhaust (0.1 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/ClientAuthTest.kt

            }
            is SocketException -> {
              // Conscrypt, JDK 8 (>= 292), JDK 9
            }
            else -> {
              assertThat(expected.message).isEqualTo("exhausted all routes")
            }
          }
        }
      }
    
      @Test
      fun commonNameIsNotTrusted() {
        serverCert =
          HeldCertificate
            .Builder()
            .signedBy(serverIntermediateCa)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

     *
     * <p>The value you pass to the parameter {@code steps} should be greater than the length of your
     * iterator, so that this class can check that your iterator behaves correctly when it is exhausted.
     *
     * <p>For example, to test {@link java.util.Collections#unmodifiableList(java.util.List)
     * Collections.unmodifiableList}'s iterator:
     *
     * {@snippet :
     * List<String> expectedElements =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/SmbResourceException.java

        /**
         * Static factory for connection pool exhaustion
         */
        public static SmbResourceException connectionPoolExhausted(int errorCode, int poolSize) {
            return new SmbResourceException("Connection pool exhausted", errorCode, ResourceType.CONNECTION, 0, poolSize);
        }
    
        /**
         * Static factory for quota exceeded
         */
        public static SmbResourceException quotaExceeded(int errorCode, long used, long quota) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt

            // This check is imperfect: it doesn't tell us whether a handshake will succeed, just
            // that it will almost certainly fail because the proxy has sent unexpected data.
            if (!socket.source.buffer.exhausted() || !socket.sink.buffer.exhausted()) {
              throw IOException("TLS tunnel buffered too many bytes!")
            }
    
            user.secureConnectStart()
    
            // Create the wrapper over the connected socket.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/graph/EndpointPairIterator.java

      }
    
      private EndpointPairIterator(BaseGraph<N> graph) {
        this.graph = graph;
        this.nodeIterator = graph.nodes().iterator();
      }
    
      /**
       * Called after {@link #successorIterator} is exhausted. Advances {@link #node} to the next node
       * and updates {@link #successorIterator} to iterate through the successors of {@link #node}.
       */
      final boolean advance() {
        checkState(!successorIterator.hasNext());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

          assertTrue(
              "index " + i + " expected <" + expected + "., actual is exhausted",
              actualIterator.hasNext());
    
          Object actual = actualIterator.next();
          assertEquals("index " + i, expected, actual);
          i++;
        }
        if (actualIterator.hasNext()) {
          fail("index " + i + ", expected is exhausted, actual <" + actualIterator.next() + ">");
        }
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 14.8K bytes
    - Viewed (0)
  7. okhttp/src/commonTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabaseTest.kt

      }
    
      @Test
      fun allPublicSuffixes() {
        val buffer = Buffer()
        FileSystem.SYSTEM.read(pathForTests) {
          val length = readInt()
          buffer.write(this, length.toLong())
        }
        while (!buffer.exhausted()) {
          var publicSuffix = buffer.readUtf8LineStrict()
          if (publicSuffix.contains("*")) {
            // A wildcard rule, let's replace the wildcard with a value.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 22:00:49 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  8. okcurl/src/main/kotlin/okhttp3/curl/internal/-MainCommon.kt

          }
          println()
        }
    
        // Stream the response to the System.out as it is returned from the server.
        val out = System.out.sink()
        val source = response.body.source()
        while (!source.exhausted()) {
          out.write(source.buffer, source.buffer.size)
          out.flush()
        }
    
        response.body.close()
      } catch (e: IOException) {
        e.printStackTrace()
      } finally {
        close()
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt

            .isEqualTo(headersOf("h1", "v1", "h2", "v2"))
          val responseBody = response.body.source()
          assertThat(responseBody.readUtf8(2)).isEqualTo("ok")
          assertThat(responseBody.exhausted()).isTrue()
          assertThat(response.trailers()).isEqualTo(headersOf("trailers", "boom"))
        }
        body.awaitSuccess()
      }
    
      @Test
      fun serverReadsHeadersData() {
        assumeNotWindows()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt

                sink.writeUtf8("client says goodbye\n")
                sink.flush()
    
                assertThat(source.readUtf8Line()).isEqualTo("server says goodbye")
    
                assertThat(source.exhausted()).isTrue()
              }
            }
            socketHandler.awaitSuccess()
          }
      }
    
      @Test
      fun upgradeHttps() {
        enableTls(Protocol.HTTP_1_1)
        upgrade()
      }
    
      @Test
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 7.1K bytes
    - Viewed (0)
Back to top