- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 152 for reuse (1.44 sec)
-
src/test/java/jcifs/http/HandlerTest.java
} @Test void testOpenConnection_CachedHandler_ReusesExistingHandler() throws Exception { // This test verifies that once a handler is cached, subsequent calls reuse it. setupMockProtocolHandlers(); URL url1 = new URL("http://example.com/resource1"); URL url2 = new URL("http://example.com/resource2");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java
assertTrue(initialAllocated >= 2, "Should have allocated at least 2 regions"); assertTrue(initialActive >= 2, "Should have at least 2 active regions"); // Test buffer release and reuse bufferManager.releaseSendRegion(sendRegion); bufferManager.releaseReceiveRegion(recvRegion); // Allocate again to test pooling
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 13.8K bytes - Viewed (0) -
cmd/metacache-walk.go
return convertAccessError(err, errVolumeAccessDenied) } } // Use a small block size to start sending quickly w := newMetacacheWriter(wr, 16<<10) w.reuseBlocks = true // We are not sharing results, so reuse buffers. defer w.Close() out, err := w.stream() if err != nil { return err } defer xioutil.SafeClose(out) var objsReturned int objReturned := func(metadata []byte) { if opts.Limit <= 0 {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Mon May 26 07:06:43 UTC 2025 - 12.6K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
private var closed: Boolean = false /** * The number of HTTP requests received thus far by this server. This may exceed the number of * HTTP connections when connection reuse is in practice. */ public val requestCount: Int get() = atomicRequestCount.get() /** The number of bytes of the POST body to keep in memory to the given limit. */
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 02 20:36:00 UTC 2025 - 40.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
assertThat(response3.body.string()).isEqualTo("GHI") // Settings connection. assertThat(server.takeRequest().exchangeIndex).isEqualTo(0) // Reuse settings connection. assertThat(server.takeRequest().exchangeIndex).isEqualTo(1) // Reuse settings connection. assertThat(server.takeRequest().exchangeIndex).isEqualTo(2) // New connection! assertThat(server.takeRequest().exchangeIndex).isEqualTo(0)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 73.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFile.java
if (th != null) { this.treeHandle = null; // Optimization: For non-strict lifecycle, delay tree handle closure // to allow connection reuse for subsequent operations if (this.transportContext.getConfig().isStrictResourceLifecycle()) { th.close(); } else {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0) -
docs/en/docs/advanced/settings.md
### Creating the `Settings` only once with `lru_cache` { #creating-the-settings-only-once-with-lru-cache } Reading a file from disk is normally a costly (slow) operation, so you probably want to do it only once and then reuse the same settings object, instead of reading it for each request. But every time we do: ```Python Settings() ```
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 12.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java
InternetDomainName domain = InternetDomainName.from(inputName); /* * We would ordinarily use constants for the expected results, but * doing it by derivation allows us to reuse the test case definitions * used in other tests. */ String expectedName = Ascii.toLowerCase(inputName); expectedName = expectedName.replaceAll("[\u3002\uFF0E\uFF61]", ".");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 17.5K bytes - Viewed (0) -
docs/smb3-features/04-directory-leasing-design.md
import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; public class DirectoryLeaseManager { private final CIFSContext context; private final LeaseManager baseLeaseManager; // Reuse existing lease manager private final ConcurrentHashMap<String, DirectoryCacheEntry> directoryCache; private final ConcurrentHashMap<Smb2LeaseKey, String> leaseToPath; private final ScheduledExecutorService scheduler;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 36.2K bytes - Viewed (0) -
docs/smb3-features/05-rdma-smb-direct-design.md
assertNotNull(region); assertTrue(region.getSize() >= 1024); // Test buffer release manager.releaseSendRegion(region); // Test reuse RdmaMemoryRegion region2 = manager.getSendRegion(1024); assertNotNull(region2); manager.cleanup(); } ``` ### 7.2 Integration Tests ```java @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 35.9K bytes - Viewed (0)