Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 129 for reconnect (0.09 seconds)

  1. src/main/java/jcifs/internal/smb2/persistent/DurableHandleReconnectResponse.java

        // The response structure is empty (0 bytes) for reconnect
        // No data is returned in a successful reconnect response
    
        /**
         * Create a new durable handle reconnect response
         */
        public DurableHandleReconnectResponse() {
            // No data fields for reconnect response
        }
    
        @Override
        public byte[] getName() {
            return CONTEXT_NAME_BYTES;
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 2K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/smb2/persistent/DurableHandleReconnect.java

    import jcifs.internal.smb2.create.CreateContextRequest;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB2 Durable Handle Reconnect Create Context (DHnC)
     *
     * MS-SMB2 Section 2.2.13.2.5
     */
    public class DurableHandleReconnect implements CreateContextRequest {
    
        /**
         * Context name for durable handle reconnect
         */
        public static final String CONTEXT_NAME = "DHnC";
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 3K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/persistent/HandleReconnector.java

            log.debug("Performing reconnection for handle: {} (type: {})", info.getPath(), info.getType());
    
            // Create reconnect context
            DurableHandleReconnect reconnectCtx = new DurableHandleReconnect(info.getFileId());
    
            // This would typically involve:
            // 1. Creating a new Smb2CreateRequest with reconnect context
            // 2. Adding lease context if needed
            // 3. Sending the request through the appropriate transport
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 8.5K bytes
    - Click Count (1)
  4. src/test/java/jcifs/tests/persistent/DurableHandleContextTest.java

            }
    
            DurableHandleReconnect reconnect = new DurableHandleReconnect(fileId);
    
            assertEquals("DHnC", new String(reconnect.getName()));
            assertArrayEquals(fileId, reconnect.getFileId());
            assertTrue(reconnect.size() > 0);
    
            // Test encoding
            byte[] buffer = new byte[reconnect.size()];
            int encoded = reconnect.encode(buffer, 0);
            assertEquals(reconnect.size(), encoded);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  5. cmd/mrf.go

    					continue
    				}
    			}
    
    			now := time.Now()
    			if now.Sub(u.Queued) < time.Second {
    				// let recently failed networks to reconnect
    				// making MRF wait for 1s before retrying,
    				// i.e 4 reconnect attempts.
    				time.Sleep(time.Second)
    			}
    
    			// wait on timer per heal
    			wait := healSleeper.Timer(context.Background())
    
    			scan := madmin.HealNormalScan
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue May 27 15:19:03 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  6. internal/dsync/dsync-client_test.go

    )
    
    // ReconnectRESTClient is a wrapper type for rest.Client which provides reconnect on first failure.
    type ReconnectRESTClient struct {
    	u    *url.URL
    	rest *rest.Client
    }
    
    // newClient constructs a ReconnectRESTClient object with addr and endpoint initialized.
    // It _doesn't_ connect to the remote endpoint. See Call method to see when the
    // connect happens.
    func newClient(endpoint string) NetLocker {
    	u, err := url.Parse(endpoint)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Jan 20 17:36:09 GMT 2022
    - 4.4K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb2/persistent/HandleInfo.java

    import java.io.Serializable;
    import java.util.Arrays;
    
    import jcifs.internal.smb2.lease.Smb2LeaseKey;
    
    /**
     * Information about a durable or persistent SMB handle.
     * This class holds all the necessary information to reconnect
     * a handle after network failures or server reboots.
     */
    public class HandleInfo implements Serializable {
    
        private static final long serialVersionUID = 1L;
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  8. internal/grid/connection_test.go

    		t.Log("Roundtrip:", time.Since(start), resp, err)
    		gotResp <- struct{}{}
    	}()
    	<-gotCall
    	remote.debugMsg(debugKillInbound)
    	local.debugMsg(debugKillInbound)
    	<-gotResp
    
    	// Must reconnect
    	errFatal(remoteConn.WaitForConnect(t.Context()))
    
    	stream, err := remoteConn.NewStream(t.Context(), handlerTest2, []byte(testPayload))
    	errFatal(err)
    	go func() {
    		for resp := range stream.responses {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb1/smb1/SmbTree.java

                         * so that it reconnects cleanly should the share
                         * reappear in this client's lifetime.
                         */
                        treeDisconnect(true);
                    }
                    throw se;
                }
            }
        }
    
        void treeConnect(final ServerMessageBlock andx, final ServerMessageBlock andxResponse) throws SmbException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  10. src/test/java/jcifs/util/transport/TransportTest.java

        class ConnectionLifecycleTests {
    
            @Test
            @DisplayName("connect should return true if already connected")
            void shouldReturnTrueIfAlreadyConnected() throws TransportException {
                transport.setState(3); // Connected
                assertTrue(transport.connect(1000));
            }
    
            @Test
            @DisplayName("connect should throw TransportException on connection failure")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.5K bytes
    - Click Count (0)
Back to Top