Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 925 for closer (0.06 sec)

  1. src/test/java/jcifs/SmbResourceTest.java

        class ResourceManagementTests {
    
            @Test
            @DisplayName("close operation should work correctly")
            void testClose() {
                // When/Then
                assertDoesNotThrow(() -> mockResource.close(), "Close operation should not throw exception");
                verify(mockResource).close();
            }
    
            @Test
            @DisplayName("resource should be AutoCloseable")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  2. docs/changelogs/changelog_2x.md

             .add("*.publicobject.com", "sha1/T5x9IXmcrQ7YuQxXnxoCmeeQ84c=")
             .build());
        ```
    
     *  **Interceptors lists are now deep-copied by `OkHttpClient.clone()`.**
        Previously clones shared interceptors, which made it difficult to customize
        the interceptors on a request-by-request basis.
    
     *  New: `Headers.toMultimap()`.
     *  New: `RequestBody.create(MediaType, ByteString)`.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 26.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbTransportPool#close()
         */
        @Override
        public boolean close() throws CIFSException {
            boolean inUse = false;
    
            // Cleanup first
            cleanup();
            log.debug("Closing pool");
    
            // Create a snapshot of connections to close
            List<SmbTransportImpl> toClose = new ArrayList<>(this.connections);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  4. cmd/storage-interface.go

    	IsLocal() bool
    
    	// Returns hostname if disk is remote.
    	Hostname() string
    
    	// Returns the entire endpoint.
    	Endpoint() Endpoint
    
    	// Close the disk, mark it purposefully closed, only implemented for remote disks.
    	Close() error
    
    	// Returns the unique 'uuid' of this disk.
    	GetDiskID() (string, error)
    
    	// Set a unique 'uuid' for this disk, only used when
    	// disk is replaced and formatted.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Apr 25 05:41:04 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbPipeInputStream.java

                }
                return resp.getAvailable();
            } catch (final SmbException se) {
                throw seToIoe(se);
            }
        }
    
        @Override
        public void close() {
            // ignore, the shared file descriptor is closed by the pipe handle
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

            @Test
            @DisplayName("Should wipe key on close")
            void testCloseWipesKey() throws Exception {
                byte[] sessionKey = new byte[16];
                Arrays.fill(sessionKey, (byte) 0xBB);
    
                Smb2SigningDigest digest = new Smb2SigningDigest(sessionKey, Smb2Constants.SMB2_DIALECT_0202, null);
    
                // Close the digest
                digest.close();
    
                // Verify operations fail after close
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt

                    for (i in 0..9) {
                      sink.writeByte(0)
                      sink.flush()
                      sleep(100)
                    }
                    fail("Expected connection to be closed")
                  }
                },
              ).build(),
          )
        interruptLater(500)
        assertFailsWith<IOException> {
          call.execute()
        }
      }
    
      @Test
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  8. cmd/metrics-v3-cluster-erasure-set.go

    		poolIDL, setIDL)
    )
    
    func b2f(v bool) float64 {
    	if v {
    		return 1
    	}
    	return 0
    }
    
    // loadClusterErasureSetMetrics - `MetricsLoaderFn` for cluster storage erasure
    // set metrics.
    func loadClusterErasureSetMetrics(ctx context.Context, m MetricValues, c *metricsCache) error {
    	result, _ := c.esetHealthResult.Get()
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue May 14 07:25:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbTreeConnection.java

            }
        }
    
        /**
         * Close the tree connection (implements AutoCloseable)
         *
         * This method provides a standard way to close resources using try-with-resources.
         * It delegates to the release() method to properly clean up the connection.
         */
        @Override
        public void close() {
            if (log.isDebugEnabled()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  10. docs/features/interceptors.md

    critical part of each interceptor’s implementation. This simple-looking method is where all the HTTP work happens, producing a response to satisfy the request. If `chain.proceed(request)` is being called more than once previous response bodies must be closed.
    
    Interceptors can be chained. Suppose you have both a compressing interceptor and a checksumming interceptor: you'll need to decide whether data is compressed and then checksummed, or checksummed and then compressed. OkHttp uses lists to...
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 8.1K bytes
    - Viewed (0)
Back to top