Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 105 for reuse (0.07 sec)

  1. 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)
  2. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

                                log.debug("Cannot reuse, signing enforced on connection " + conn);
                            }
                            continue;
                        }
    
                        if (!conn.getNegotiateResponse().canReuse(tc, forceSigning)) {
                            if (log.isTraceEnabled()) {
                                log.trace("Cannot reuse, different config " + conn);
                            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            assertFalse(pool.contains(nonPooled), "Non-pooled connection should not be tracked");
        }
    
        @Test
        @DisplayName("Should create new connections when reuse conditions are not met")
        void testNoConnectionReuse() throws Exception {
            // Given: Create a new pool for this test to ensure isolation
            SmbTransportPoolImpl testPool = new SmbTransportPoolImpl();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/escape/super/com/google/common/escape/Platform.java

     * @author Jesse Wilson
     */
    final class Platform {
    
      private static final char[] CHAR_BUFFER = new char[1024];
    
      static char[] charBufferFromThreadLocal() {
        // ThreadLocal is not available to GWT, so we always reuse the same
        // instance.  It is always safe to return the same instance because
        // javascript is single-threaded, and only used by blocks that doesn't
        // involve async callbacks.
        return CHAR_BUFFER;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ReusePlan.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.connection
    
    /** Reuse a connection from the pool. */
    internal class ReusePlan(
      val connection: RealConnection,
    ) : RoutePlanner.Plan {
      override val isReady = true
    
      override fun connectTcp() = error("already connected")
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java

            // Transaction should be ready for reuse
            assertTrue(transaction.hasMoreElements());
        }
    
        @Test
        @DisplayName("Test reset with key and lastName")
        void testResetWithKeyAndLastName() {
            // Reset with parameters should not throw exception
            assertDoesNotThrow(() -> transaction.reset(123, "testName"));
    
            // Transaction should be ready for reuse
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbTreeHandleInternal.java

     * SMB tree connections and their lifecycle.
     *
     * @author mbechler
     */
    public interface SmbTreeHandleInternal extends SmbTreeHandle {
    
        /**
         * Releases this tree handle back to the pool for reuse
         */
        void release();
    
        /**
         * Ensures that DFS referrals have been resolved for this tree
         * @throws SmbException if an SMB-specific error occurs
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

              annotationClass.getDeclaringClass(),
              returnType.getComponentType());
        }
      }
    
      // This is public so that tests for Feature enums we haven't yet imagined
      // can reuse it.
      public static <E extends Enum<?> & Feature<?>> void assertGoodFeatureEnum(
          Class<E> featureEnumClass) {
        Class<?>[] classes = featureEnumClass.getDeclaredClasses();
        for (Class<?> containedClass : classes) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/cache/ReferenceEntry.java

     *
     * <p>Invalid:
     *
     * <ul>
     *   <li>Expired: time expired (key/value may still be set)
     *   <li>Collected: key/value was partially collected, but not yet cleaned up
     *   <li>Unset: marked as unset, awaiting cleanup or reuse
     * </ul>
     */
    @GwtIncompatible
    interface ReferenceEntry<K, V> {
      /** Returns the value reference from this entry. */
      @Nullable ValueReference<K, V> getValueReference();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Feb 11 18:34:30 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  10. 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)
Back to top