Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for ensureConnected (0.15 sec)

  1. src/test/java/jcifs/smb/SmbTransportInternalTest.java

            verify(transport).ensureConnected();
        }
    
        // Error case: ensureConnected throws IOException
        @Test
        @DisplayName("ensureConnected throws IOException on failure")
        void ensureConnected_throwsIOException() throws Exception {
            doThrow(new java.io.IOException("connect failed")).when(transport).ensureConnected();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            when(trans2.unwrap(SmbTransportImpl.class)).thenReturn(trans2);
            when(trans2.ensureConnected()).thenThrow(new IOException("Connection failed"));
            doNothing().when(trans2).close();
    
            when(trans1.unwrap(SmbTransportImpl.class)).thenReturn(trans1);
            when(trans1.ensureConnected()).thenReturn(true);
            when(trans1.acquire()).thenReturn(trans1);
            doNothing().when(trans1).close();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/rdma/RdmaTransport.java

                    rdmaConnection = null;
                }
            }
            return delegate.disconnect(hard, inuse);
        }
    
        @Override
        public boolean ensureConnected() throws IOException {
            boolean result = delegate.ensureConnected();
    
            // Try to establish RDMA connection if configured
            if (result && delegate.getContext().getConfig().isRdmaEnabled()) {
                try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTransportInternal.java

         *
         * @return whether the transport was connected
         * @throws SmbException if an SMB error occurs
         * @throws IOException if an I/O error occurs
         */
        boolean ensureConnected() throws IOException;
    
        /**
         * Gets DFS referrals for the specified path.
         *
         * @param ctx the CIFS context
         * @param name the DFS path to resolve
         * @param targetHost the target host name
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

                }
                try (SmbTransportImpl trans = getSmbTransport(tf, addr, port, exclusive, forceSigning).unwrap(SmbTransportImpl.class)) {
                    try {
                        trans.ensureConnected();
                    } catch (final IOException e) {
                        removeTransport(trans);
                        throw e;
                    }
                    return trans.acquire();
    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/DfsImpl.java

                                                        && tf.getConfig().isIpcSigningEnforced())
                                        .unwrap(SmbTransportImpl.class);
                                transport.ensureConnected();
                                return transport;
                            } catch (final IOException ex) {
                                log.debug("Connection failed " + dr.getServer(), ex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 29.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/http/NtlmHttpFilter.java

                    .unwrap(SmbTransportInternal.class)) {
                if (!tf.hasDefaultCredentials()) {
                    trans.ensureConnected();
                    log.warn("""
                            Default credentials (jcifs.smb.client.username/password)\
                             not specified. SMB signing may not work propertly.\
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/MultiChannelManager.java

                SmbTransportImpl transport = new SmbTransportImpl(context, serverUniAddress, port, localAddress, localPort, forceSigning);
    
                // Ensure the transport is connected and ready
                transport.ensureConnected();
    
                // Verify multi-channel capability (SMB3+ required)
                if (!transport.isSMB2() || !transport.hasCapability(0x00000008)) { // SMB2_GLOBAL_CAP_MULTI_CHANNEL
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbTreeImpl.java

                synchronized (transport) {
    
                    // this needs to be done before the reference to the remote hostname later
                    transport.ensureConnected();
    
                    if (waitForState(transport) == 2) {
                        // already connected
                        return null;
                    }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTreeConnection.java

                    SmbSessionImpl session = th.getSession();
                    SmbTransportImpl transport = session.getTransport();
                    SmbTreeImpl t = getTree()) {
                transport.ensureConnected();
    
                final String rpath = request != null ? request.getPath() : loc.getUNCPath();
                final String rfullpath =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
Back to top