Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 46 for doDisconnect (0.25 sec)

  1. 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)
  2. src/main/java/jcifs/internal/smb2/rdma/RdmaTransport.java

            return delegate.hasCapability(cap);
        }
    
        @Override
        public boolean isDisconnected() {
            return delegate.isDisconnected();
        }
    
        @Override
        public boolean disconnect(boolean hard, boolean inuse) throws IOException {
            synchronized (connectionLock) {
                if (rdmaConnection != null) {
                    try {
                        rdmaConnection.close();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/main/java/jcifs/smb/SmbSessionImpl.java

                         */
                        try {
                            log.warn("Exception during SSP authentication", se);
                            trans.disconnect(true);
                        } catch (IOException ioe) {
                            log.debug("Disconnect failed");
                        }
                        setUid(0);
                        throw se;
                    }
    
                    if (token != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  6. 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)
  7. src/main/java/jcifs/smb1/smb1/SmbSession.java

                                     * sent. Unfortunately calling disconnect() doesn't always
                                     * actually shutdown the connection before other threads
                                     * have committed themselves (e.g. InterruptTest example).
                                     */
                                    try {
                                        transport.disconnect(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbWatchHandleImpl.java

         */
        @Override
        public List<FileNotifyInformation> watch() throws CIFSException {
            if (!this.handle.isValid()) {
                throw new SmbException("Watch was broken by tree disconnect");
            }
            try (SmbTreeHandleImpl th = this.handle.getTree()) {
    
                CommonServerMessageBlockRequest req;
                NotifyResponse resp = null;
                if (th.isSMB2()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbTreeConnectionTest.java

            }
    
            // Request/response reset should happen on retry
            verify(req, atLeastOnce()).reset();
            verify(resp, atLeastOnce()).reset();
            // Verify disconnect was called on retry
            verify(c, atLeastOnce()).disconnect(eq(true));
        }
    
        @Test
        @DisplayName("send honors NO_RETRY and propagates error immediately")
        void send_noRetry_param() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

            try {
                handshake();
            } catch (final IOException ex) {}
            return connection.getResponseMessage();
        }
    
        @Override
        public void disconnect() {
            connection.disconnect();
            handshakeComplete = false;
            connected = false;
        }
    
        @Override
        public boolean usingProxy() {
            return connection.usingProxy();
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 22.1K bytes
    - Viewed (0)
Back to top