- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 166 for reused (0.04 sec)
-
src/test/java/jcifs/smb/BufferCacheImplTest.java
} // Next get should return the same instance from cache byte[] reused = impl.getBuffer(); assertSame(b, reused, "Buffer should be reused from cache"); // And it should still be zeroed for (byte value : reused) { assertEquals(0, value, "Reused buffer must be zeroed"); } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMapEntry.java
* buckets for the key and the value. This allows reuse in {@link RegularImmutableMap} and {@link * RegularImmutableBiMap}, which don't have to recopy the entries created by their {@code Builder} * implementations. * * <p>This base implementation has no key or value pointers, so instances of ImmutableMapEntry (but * not its subclasses) can be reused when copied from one ImmutableMap to another. * * @author Louis Wasserman
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 01 21:42:29 UTC 2025 - 4.6K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt
* request body start and end events occur within the response header events. Similarly, * [duplex calls][RequestBody.isDuplex] interleave the request and response bodies. * * Since connections may be reused, the proxy selection, DNS, and connect events may not be present * for a call. In future releases of OkHttp these events may also occur concurrently to permit * multiple routes to be attempted simultaneously. *
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:58:02 UTC 2025 - 17.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java
byte[] buffer2 = BufferCache.getBuffer(); // Then - Buffer should be valid assertNotNull(buffer2, "Reused buffer should not be null"); assertEquals(SmbComTransaction.TRANSACTION_BUF_SIZE, buffer2.length, "Reused buffer should have correct size"); // Note: We don't check if content is cleared as that's not a security requirement
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/SmbNegotiationResponse.java
*/ int getInitialCredits(); /** * Checks whether a connection can be reused for the given configuration. * * @param tc the CIFS context to check compatibility with * @param forceSigning whether signing is being forced * @return whether a connection can be reused for this config */ boolean canReuse(CIFSContext tc, boolean forceSigning);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.9K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/RequestBody.kt
* due to any of: * * * A stale connection. The request was made on a reused connection and that reused connection * has since been closed by the server. * * A client timeout (HTTP 408). * * A authorization challenge (HTTP 401 and 407) that is satisfied by the [Authenticator]. * * A retryable server failure (HTTP 503 with a `Retry-After: 0` response header).
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 04 17:43:43 UTC 2025 - 9K bytes - Viewed (0) -
mockwebserver/README.md
RecordedRequest request3 = server.takeRequest(); assertEquals("/v1/chat/messages/3", request3.getUrl().encodedPath()); // Shut down the server. Instances cannot be reused. server.close(); } ``` ### Kotlin ```kotlin fun test() { // Create a MockWebServer. These are lean enough that you can create a new // instance for every unit test. val server = MockWebServer()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jul 19 13:40:52 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/BufferCacheTest.java
void testBufferReuse() { // Given byte[] originalBuffer = testCache.getBuffer(); // When - release and get again testCache.releaseBuffer(originalBuffer); byte[] reusedBuffer = testCache.getBuffer(); // Then assertSame(originalBuffer, reusedBuffer, "Released buffer should be reused"); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/SessionReuseTest.kt
} client.connectionPool.evictAll() assertEquals(0, client.connectionPool.connectionCount()) // Force reuse. This appears flaky (30% of the time) even though sessions are reused. // javax.net.ssl.SSLHandshakeException: No new session is allowed and no existing // session can be resumed // // Report https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8264944
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 6K bytes - Viewed (1) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/CallServerInterceptor.kt
} else { exchange.noRequestBody() if (!exchange.connection.isMultiplexed) { // If the "Expect: 100-continue" expectation wasn't met, prevent the HTTP/1 connection // from being reused. Otherwise we're still obligated to transmit the request body to // leave the connection in a consistent state. exchange.noNewExchangesOnConnection() } }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jul 29 22:04:11 UTC 2025 - 7.8K bytes - Viewed (0)