Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for doDisconnect (0.13 sec)

  1. src/main/java/jcifs/smb1/util/transport/Transport.java

         */
    
        /**
         * Tears down the connection to the remote endpoint.
         *
         * @param hard if true, disconnect immediately without waiting for outstanding requests
         * @throws IOException if an I/O error occurs
         */
        protected abstract void doDisconnect(boolean hard) throws IOException;
    
        /**
         * Establishes a connection to the remote endpoint.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/transport/Transport.java

            }
        }
    
        /**
         * Disconnect the transport
         *
         * @param hard if true, disconnect immediately without waiting for outstanding requests
         * @return whether connection was in use
         * @throws IOException if an I/O error occurs during disconnection
         */
        public synchronized boolean disconnect(final boolean hard) throws IOException {
            return disconnect(hard, true);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                    default:
                        disconnect(true);
                        throw new NbtException(NbtException.ERR_SSN_SRVC, errorCode);
                    }
                    break;
                case -1:
                    disconnect(true);
                    throw new NbtException(NbtException.ERR_SSN_SRVC, NbtException.CONNECTION_REFUSED);
                default:
                    disconnect(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbTransportInternalTest.java

        }
    
        // Error case: disconnect throws IOException
        @Test
        @DisplayName("disconnect throws IOException when underlying close fails")
        void disconnect_throwsIOException() throws Exception {
            doThrow(new java.io.IOException("close error")).when(transport).disconnect(true, true);
            java.io.IOException ex = assertThrows(java.io.IOException.class, () -> transport.disconnect(true, true));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTreeConnection.java

                // Disconnect and try again from scratch.
    
                if (log.isDebugEnabled()) {
                    log.debug(String.format("Retrying (%d/%d) request %s", retries, maxRetries, request));
                }
    
                // should we disconnect the transport here? otherwise we make an additional attempt to detect that if the
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            nonPooledConnections.offer(nonPooledSpy);
    
            // Mock disconnect behavior
            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");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbTreeImpl.java

                         * Someone removed the share while we were
                         * connected. Bastards! Disconnect this tree
                         * so that it reconnects cleanly should the share
                         * reappear in this client's lifetime.
                         */
                        log.debug("Disconnect tree on NT_STATUS_NETWORK_NAME_DELETED");
                        treeDisconnect(true, true);
                    }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

                try {
                    conn.disconnect(true, true);
                } catch (Exception e) {
                    log.debug("Error closing connection: {}", e.getMessage());
                }
            });
            connections.clear();
    
            nonPooledConnections.forEach(conn -> {
                try {
                    conn.disconnect(true, true);
                } catch (Exception e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

        }
    
        /**
         * Test that disconnect() calls disconnect() on the underlying connection and resets state.
         */
        @Test
        void testDisconnect() throws Exception {
            // Act
            ntlmConnection.disconnect();
    
            // Assert
            verify(mockConnection).disconnect();
            // Connection should be closed after disconnect
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java

        }
    
        private void attemptRecovery(ChannelInfo channel, FailoverState state) {
            try {
                log.info("Attempting to recover channel {}", channel.getChannelId());
    
                // Disconnect existing transport
                SmbTransport oldTransport = channel.getTransport();
                if (oldTransport != null) {
                    try {
                        oldTransport.close();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 11.6K bytes
    - Viewed (0)
Back to top