Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for isDisconnected (0.07 sec)

  1. src/test/java/jcifs/tests/OplockTests.java

                        finally {
                            if ( resp2 != null && !trans.isDisconnected() ) {
                                tree.send(new SmbComClose(sess.getConfig(), resp2.getFid(), 0L));
                            }
                        }
                    }
                    finally {
                        if ( resp != null && !trans.isDisconnected() ) {
                            tree.send(new SmbComClose(sess.getConfig(), resp.getFid(), 0L));
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTransportInternal.java

         * @throws SmbException
         */
        boolean hasCapability ( int cap ) throws SmbException;
    
    
        /**
         * @return whether the transport has been disconnected
         */
        boolean isDisconnected ();
    
    
        /**
         * @param hard
         * @param inuse
         * @return whether the connection was in use
         * @throws IOException
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/transport/Transport.java

            }
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.Object#finalize()
         */
        @Override
        protected void finalize () throws Throwable {
            if ( !isDisconnected() && this.usageCount.get() != 0 ) {
                log.warn("Session was not properly released");
            }
        }
    
    
        /**
         * @return the number of known usages
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Nov 01 18:12:21 UTC 2020
    - 24.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

                        && ( tc.getConfig().getSessionLimit() == 0 || conn.getNumSessions() < tc.getConfig().getSessionLimit() ) ) {
                    try {
                        if ( conn.isFailed() || ( connectedOnly && conn.isDisconnected() ) ) {
                            continue;
                        }
    
                        if ( forceSigning && !conn.isSigningEnforced() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Dec 20 14:09:34 UTC 2020
    - 12.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTransportImpl.java

        }
    
    
        @Override
        public int getInflightRequests () {
            return this.response_map.size();
        }
    
    
        @Override
        public boolean isDisconnected () {
            Socket s = this.socket;
            return super.isDisconnected() || s == null || s.isClosed();
        }
    
    
        @Override
        public boolean isFailed () {
            Socket s = this.socket;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 18 23:47:00 UTC 2023
    - 67K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/TimeoutTest.java

                    }
                    f.close();
    
                    Thread.sleep(2 * soTimeout);
    
                    // connection should be closed by now
                    assertTrue("Transport is still connected", t.isDisconnected());
                    assertFalse("Connection is still in the pool", ( (SmbTransportPoolImpl) ctx.getTransportPool() ).contains(t));
                }
                finally {
                    f.delete();
                }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 12.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbTreeImpl.java

                            if ( response.isReceived() && !response.isError() && response.getErrorCode() == NtStatus.NT_STATUS_OK ) {
                                if ( !transport.isDisconnected() ) {
                                    treeConnected(transport, sess, response);
                                }
                                throw se;
                            }
                        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:06:39 UTC 2023
    - 29.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTreeConnection.java

            try ( SmbSessionImpl session = getSession() ) {
                if ( isConnected() ) {
                    try ( SmbTransportImpl transport = session.getTransport() ) {
                        if ( transport.isDisconnected() || transport.getRemoteHostName() == null ) {
                            /*
                             * Tree/session thinks it is connected but transport disconnected
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 31K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbSessionImpl.java

            return this.credentials;
        }
    
    
        /**
         * @return whether the session is connected
         */
        public boolean isConnected () {
            return !this.transport.isDisconnected() && this.connectionState.get() == 2;
        }
    
    
        /**
         * @return whether the session has been lost
         */
        public boolean isFailed () {
            return this.transport.isFailed();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Nov 14 17:41:04 UTC 2021
    - 49K bytes
    - Viewed (0)
Back to top