Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for closer (0.12 sec)

  1. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

                    testEncryptionKey, testDecryptionKey);
    
            // When/Then - Multiple closes should be safe
            assertDoesNotThrow(() -> {
                context.close();
                context.close();
                context.close();
            });
    
            assertTrue(context.isClosed());
        }
    
        @Test
        @DisplayName("Should handle concurrent operations with SecureKeyManager")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

         *
         * @see jcifs.SmbPipeHandle#close()
         */
        @Override
        public synchronized void close() throws CIFSException {
            final boolean wasOpen = isOpen();
            this.open = false;
            if (this.input != null) {
                this.input.close();
                this.input = null;
            }
    
            if (this.output != null) {
                this.output.close();
                this.output = null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

            }
        }
    
        /**
         * Check if this context is closed
         *
         * @return true if closed, false otherwise
         */
        public boolean isClosed() {
            return closed;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbFileHandleImpl.java

            return this.open && this.tree_num == this.tree.getTreeId() && this.tree.isConnected();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbFileHandle#close(long)
         */
        @Override
        public synchronized void close(final long lastWriteTime) throws CIFSException {
            closeInternal(lastWriteTime, true);
        }
    
        /**
         * @param lastWriteTime
         * @throws SmbException
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.4K bytes
    - Viewed (1)
  5. 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)
  6. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

                }
                closed = true;
            }
        }
    
        /**
         * Check if this authenticator has been closed
         *
         * @return true if closed, false otherwise
         */
        public boolean isClosed() {
            return closed;
        }
    
        private void checkNotClosed() {
            if (closed) {
                throw new IllegalStateException("Authenticator has been closed");
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/transport/Transport.java

                    final boolean timeout = ex instanceof SocketTimeoutException || msg != null && msg.equals("Read timed out");
                    final boolean closed = msg != null && msg.equals("Socket closed");
    
                    if (closed) {
                        log.trace("Remote closed connection");
                    } else if (timeout) {
                        log.debug("socket timeout in non peek state", ex);
                    } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

                                timingRatio, TIMING_TOLERANCE, timeStart, timeMiddle, timeEnd));
            } finally {
                // Clean up resources
                baseAuth.close();
                startAuth.close();
                middleAuth.close();
                endAuth.close();
            }
        }
    
        /**
         * Test constant-time comparison with various password lengths.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            when(pooledSpy.disconnect(false, false)).thenReturn(true); // In use
            when(nonPooledSpy.disconnect(false, false)).thenReturn(false); // Not in use
    
            // When: Close the pool
            boolean inUse = pool.close();
    
            // Then: Should report in-use and call disconnect on all
            assertTrue(inUse, "Should report connections in use");
            verify(pooledSpy).disconnect(false, false);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbSessionImpl.java

                return false;
            }
        }
    
        /**
         * Get cluster name for witness discovery
         *
         * @param serverAddress the server address
         * @return cluster name or null
         */
        private String getClusterName(InetAddress serverAddress) {
            // Simple implementation - could be enhanced with proper cluster discovery
            String hostname = serverAddress.getHostName();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
Back to top